← All docs

exec() — internals

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

exec() — internals

Where it lives

Lowering notes

  • Lowers exec(command) by capturing shell stdout through the shared runtime helper.

Runtime helpers

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

Signature summary

function exec(string $command): string

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references