← All docs
intval() — internals
Compiler internals for intval(): lowering path, type checks, and runtime helpers.
intval() — internals
Where it lives
- Signature:
src/builtins/types/intval.rs - Lowering:
src/codegen/lower_inst/builtins.rs:1127 (lower_intval) - Function symbol:
lower_intval()
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)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/types/intval.rs(eval_builtin!) - Dispatch hooks:
direct,values