- var_dump: documentation ( source)
- microtime: documentation ( source)
- range: documentation ( source)
<?php
function hello() {};
$range = range(1,100000);
$start = microtime(true);
foreach ($range as $item) {
hello();
}
var_dump(microtime(true) - $start);