← All docs

array_search() — internals

Compiler internals for array_search(): lowering path, type checks, and runtime helpers.

array_search() — internals

Where it lives

Lowering notes

  • Lowers array_search() for indexed arrays with integer-like payloads.

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function array_search(mixed $needle, array $haystack, bool $strict = false): mixed

What the type checker enforces

  • Arity: takes 2–3 arguments (1 optional).

Eval interpreter (magician)

Cross-references