← All docs

get_class() — internals

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

get_class() — internals

Where it lives

Lowering notes

  • Lowers get_class() and get_parent_class() through static or dynamic class metadata.

Runtime helpers

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

Signature summary

function get_class(object $object = null): string

What the type checker enforces

  • Arity: takes 0–1 arguments (1 optional).

Eval interpreter (magician)

Cross-references