← All docs

array_unique() — internals

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

array_unique() — internals

Where it lives

Lowering notes

  • Lowers array_unique() for indexed arrays with 8-byte payload slots.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_array_filter
  • __rt_array_filter_refcounted

Signature summary

function array_unique(array $array): array

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references