exit()
function exit(int $status = 0): void
Terminates execution with an optional status.
Parameters:
$status(int), default0, optional
Returns: void
Availability
- Compiled (AOT): supported through a dedicated compiler language-construct path.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/core/exit.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how exit is implemented in the compiler, see the internals page.