← All docs

is_array() — internals

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

is_array() — internals

Where it lives

Lowering notes

  • Lowers is_array(): true for statically-known arrays/hashes, or a boxed Mixed/Union value
  • whose runtime tag is an indexed (4) or associative (5) array. An iterable-typed value is
  • not treated as a definite array here (it may hold a Traversable); use is_iterable for that.

Runtime helpers

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

Signature summary

function is_array(mixed $value): bool

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references