← All docs
array_find() — internals
Compiler internals for array_find(): lowering path, type checks, and runtime helpers.
array_find() — internals
Where it lives
- Signature:
src/builtins/array/array_find.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:1568 (lower_array_find) - Function symbol:
lower_array_find()
Lowering notes
- Lowers
array_find(): returns the first element satisfying the predicate, boxed as Mixed (or null).
Runtime helpers
The following runtime helpers are referenced:
__rt_array_walk_recursive
Signature summary
function array_find(mixed $array, mixed $callback): mixed
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
Not callable from eval’d code — the magician interpreter has no entry for this builtin.