← All docs
gc_status()
Returns live collector counters, roots, and phase timings in PHP's array shape. Elephc has no collector buffer, so full, threshold, and buffer_size are compatibility fields fixed to false, 0, and 0.
gc_status()
function gc_status(): mixed
Returns live collector counters, roots, and phase timings in PHP’s array shape. Elephc has no collector buffer, so full, threshold, and buffer_size are compatibility fields fixed to false, 0, and 0.
Parameters: none.
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/core/gc_status.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how gc_status is implemented in the compiler, see the internals page.