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

gc_status( ): array

Gets information about the current state of the garbage collector.


This function has no parameters.

Return Values

Returns an associative array with the following elements:





Example of gc_status

Show all examples for gc_status

PHP Version:

Function gc_status:

PHP Options and Information Functions

Most used PHP functions