← All docs

zval_type() — internals

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

zval_type() — internals

Where it lives

Lowering notes

  • Lowers zval_type(zval_ptr) by returning the PHP IS_* type byte.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_zval_free
  • __rt_zval_type

Signature summary

function zval_type(pointer $zval): int

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Not callable from eval’d code — the magician interpreter has no entry for this builtin.

Cross-references