← All docs

array_key_last() — internals

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

array_key_last() — internals

Where it lives

Lowering notes

  • Lowers array_key_last() through the shared edge-key helper with selector 1.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_array_edge_key
  • __rt_mixed_from_value

Signature summary

function array_key_last(array $array): mixed

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Not callable from eval’d code — the magician interpreter has no entry for this builtin.

Cross-references