← All docs

ptr() — internals

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

ptr() — internals

Where it lives

Lowering notes

  • Lowers ptr(value) by materializing the address of addressable local/global storage.

Runtime helpers

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

Signature summary

function ptr(mixed $value): mixed

What the type checker enforces

  • Arity: takes exactly 1 argument.

Cross-references