3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=array(); $b=null; $e=null; $l=100; $i=0; while($i++ < $l){ $b=microtime(true); $e=microtime(true); $a[] = $e - $b; } $an = (array_sum($a) / count($a))*1000); $i = 0; $a=array(); $b=null; $e=null; while($i++ < $l){ $b=microtime(true); microtime(true); microtime(true); $e=microtime(true); $a[] = e - $b; } $am = (array_sum($a) / count($a))*1000); echo "Average empty time measure: " . $an .'sec<br>'; echo "Average filled time measure: " . $am .'sec<br>'; echo "Average 2 microtime calls: " . ($am - $an) . 'sec'
Output for 5.3.0 - 5.4.26
Parse error: syntax error, unexpected ')' in /in/3IVEY on line 12
Process exited with code 255.