The PHP sys_getloadavg() function returns the system load average as an array (three numbers) that are the average load over the last 1, 5 and 15 minutes.

				
					<?php
$loadtime = sys_getloadavg();
// then do something with the data
?>
				
			

Syntax

				
					sys_getloadavg()