gc_status
PHP 7 >= 7.3.0, PHP 8
gc_status - Gets information about the garbage collector
Manual
gc_status(
): array
Gets information about the current state of the garbage collector.
Parameters
This function has no parameters.
Return Values
Returns an associative array with the following elements:
"runs"
"collected"
"threshold"
"roots"