← All docs

array_is_list() — internals

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

array_is_list() — internals

Where it lives

Lowering notes

  • Lowers array_is_list() to the __rt_array_is_list runtime predicate, returning a bool.
  • The runtime helper accepts any array kind (indexed, associative hash, or boxed mixed cell) and
  • reports 1 when the keys are the sequential integers 0..n-1 in insertion order, 0 otherwise.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_array_edge_key
  • __rt_array_is_list
  • __rt_mixed_from_value

Signature summary

function array_is_list(mixed $array): bool

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