← All docs

var_dump() — internals

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

var_dump() — internals

Where it lives

Lowering notes

  • Lowers var_dump(value, ...values) for concrete scalar/resource values and array/hash shells.
  • Each operand is dumped independently in source order, matching PHP’s variadic var_dump.

Runtime helpers

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

Signature summary

function var_dump(mixed $value, ...$values): void

What the type checker enforces

  • Arity: takes exactly 1 argument.
  • Variadic: collects excess arguments into $values.

Eval interpreter (magician)

Cross-references