← All docs

touch() — internals

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

touch() — internals

Where it lives

Lowering notes

  • Lowers touch(path, mtime?, atime?) through the target-aware runtime helper.

Runtime helpers

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

Signature summary

function touch(string $filename, int $mtime = null, int $atime = null): bool

What the type checker enforces

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

Eval interpreter (magician)

Cross-references