← All docs

intval() — internals

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

intval() — internals

Where it lives

Lowering notes

  • Lowers intval() for concrete scalar operands.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_mixed_cast_int
  • __rt_str_to_int

Signature summary

function intval(mixed $value): int

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references