PHP sys_getloadavg Function

The sys_getloadavg — Gets system load average.

array sys_getloadavg ( void )

Returns three samples representing the average system load (the number of processes in the system run queue) over the last 1, 5 and 15 minutes, respectively.

Example -

Return Values

Returns an array with three samples (last 1, 5 and 15 minutes).