← All docs

min() — internals

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

min() — internals

Where it lives

Lowering notes

  • Lowers numeric min() and max() over concrete integer-like or float operands.

Runtime helpers

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

Signature summary

function min(mixed $value, ...$values): mixed

What the type checker enforces

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

Eval interpreter (magician)

Cross-references