← All docs

is_a() — internals

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

is_a() — internals

Where it lives

Lowering notes

  • Lowers is_a() and is_subclass_of() for object operands and literal targets.

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function is_a(object $object_or_class, string $class, bool $allow_string = false): bool

What the type checker enforces

  • Arity: takes 2–3 arguments (1 optional).

Eval interpreter (magician)

Cross-references