← All docs

file_exists() — internals

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

file_exists() — internals

Where it lives

Lowering notes

  • Lowers file_exists(path) through the target-aware runtime stat helper.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_mkdir
  • __rt_unlink

Signature summary

function file_exists(string $filename): bool

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references