← All docs

shell_exec() — internals

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

shell_exec() — internals

Where it lives

Lowering notes

  • Lowers shell_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 shell_exec(string $command): string

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references