← 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

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.

Cross-references