← All docs

array_pop() — internals

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

array_pop() — internals

Where it lives

Lowering notes

  • Lowers array_pop() for indexed arrays by mutating length and boxing T|null as Mixed.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_sort_int
  • __rt_sort_str

Signature summary

function array_pop(array $array): mixed

What the type checker enforces

  • Arity: takes exactly 1 argument.
  • By-reference parameters: $array.

Eval interpreter (magician)

Cross-references