← All docs
array_walk_recursive() — internals
Compiler internals for array_walk_recursive(): lowering path, type checks, and runtime helpers.
array_walk_recursive() — internals
Where it lives
- Signature:
src/builtins/array/array_walk_recursive.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:1584 (lower_array_walk_recursive) - Function symbol:
lower_array_walk_recursive()
Lowering notes
- Lowers
array_walk_recursive(): invokes the callback on each scalar leaf of a (possibly nested) - array, descending into array-valued elements. Returns void; leaves are passed as 8-byte scalars.
Runtime helpers
The following runtime helpers are referenced:
__rt_array_udiff_uintersect__rt_array_walk_recursive
Signature summary
function array_walk_recursive(array $array, callable $callback): void
What the type checker enforces
- Arity: takes exactly 2 arguments.
- By-reference parameters:
$array.
Eval interpreter (magician)
Not callable from eval’d code — the magician interpreter has no entry for this builtin.