← All docs

ptr_sizeof() — internals

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

ptr_sizeof() — internals

Where it lives

Lowering notes

  • Lowers ptr_sizeof("type") by materializing the checked static byte size.

Runtime helpers

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

Signature summary

function ptr_sizeof(string $type): int

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references