← 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

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gc_status is implemented in the compiler, see the internals page.