← All docs

sleep() — internals

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

sleep() — internals

Where it lives

Lowering notes

  • Lowers sleep(seconds) through the target’s C library symbol.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_strtotime

Signature summary

function sleep(int $seconds): int

What the type checker enforces

  • Arity: takes exactly 1 argument.

Eval interpreter (magician)

Cross-references