gc_status

PHP 7 >= 7.3.0, PHP 8
gc_status - Gets information about the garbage collector
Manual
Code Examples

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"

Example of gc_status

Show all examples for gc_status

PHP Version:


Function gc_status:

PHP Options and Information Functions

Most used PHP functions