← All docs

spl_autoload() — internals

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

spl_autoload() — internals

Where it lives

Lowering notes

  • Lowers no-op autoload calls by preserving arg effects and returning PHP null if used.

Runtime helpers

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

Signature summary

function spl_autoload(string $class, string $file_extensions = null): void

What the type checker enforces

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

Eval interpreter (magician)

Cross-references