← All docs

array_intersect_key() — internals

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

array_intersect_key() — internals

Where it lives

Lowering notes

  • Lowers array_intersect_key() for two associative arrays by keeping shared first-operand keys.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_array_intersect_key

Signature summary

function array_intersect_key(array $array, ...$arrays): array

What the type checker enforces

  • Arity: takes exactly 1 argument.
  • Variadic: collects excess arguments into $arrays.

Eval interpreter (magician)

Cross-references