← All docs

array_fill() — internals

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

array_fill() — internals

Where it lives

Lowering notes

  • Lowers array_fill() for pointer-sized scalar and refcounted payloads.

Runtime helpers

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

Signature summary

function array_fill(int $start_index, int $count, mixed $value): array

What the type checker enforces

  • Arity: takes exactly 3 arguments.

Eval interpreter (magician)

Cross-references