← All docs

is_resource() — internals

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

is_resource() — internals

Where it lives

Lowering notes

  • Lowers is_resource(value) for static resources and boxed Mixed resource cells.

Runtime helpers

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

Signature summary

function is_resource(mixed $value): bool

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references