Use this: <?php $loads=sys_getloadavg(); $core_nums=trim(shell_exec("grep -P '^physical id' /proc/cpuinfo|wc -l")); $load=$loads[0]/$core_nums; echo $load; ?>