← All docs

array_walk() — internals

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

array_walk() — internals

Where it lives

Lowering notes

  • Lowers array_walk() through the callback-driven runtime helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_array_walk

Signature summary

function array_walk(array $array, callable $callback): void

What the type checker enforces

  • Arity: takes exactly 2 arguments.
  • By-reference parameters: $array.

Eval interpreter (magician)

Cross-references