← All docs

asort() — internals

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

asort() — internals

Where it lives

Lowering notes

  • Lowers asort() for indexed integer arrays through the value-sort runtime wrapper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_arsort
  • __rt_asort
  • __rt_krsort
  • __rt_ksort
  • __rt_natcasesort
  • __rt_natsort

Signature summary

function asort(array $array): bool

What the type checker enforces

  • Arity: takes exactly 1 argument.
  • By-reference parameters: $array.

Eval interpreter (magician)

Cross-references