php_sapi_name()
function php_sapi_name(): string
Implemented by the compiler-injected version prelude.
Parameters: none.
Returns: string
Availability
- Compiled (AOT): supported through the compiler-injected version prelude.
eval()(magician interpreter): not available inside eval’d code.
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how php_sapi_name is implemented in the compiler, see the internals page.