← All docs

abs() — internals

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

abs() — internals

Where it lives

Lowering notes

  • Lowers abs() for concrete integer-like and floating operands.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_abs_mixed

Signature summary

function abs(int $num): mixed

What the type checker enforces

  • Arity: takes exactly 1 argument.

Cross-references