← All docs

floatval() — internals

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

floatval() — internals

Where it lives

Lowering notes

  • Lowers floatval() for concrete scalar operands.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_mixed_cast_float
  • __rt_str_to_number

Signature summary

function floatval(mixed $value): float

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references