← All docs

class_parents() — internals

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

class_parents() — internals

Where it lives

Lowering notes

  • Lowers class_implements(), class_parents(), and class_uses() from static metadata.

Runtime helpers

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

Signature summary

function class_parents(mixed $object_or_class, bool $autoload = true): mixed

What the type checker enforces

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

Eval interpreter (magician)

Cross-references