3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range = 10; $c = range(0,$range-1); for ($i=0; $i<$range; $i++) { $v = $c[$i]; } /* $t=microtime(true); foreach($c as $i)$i; $r[1]+=microtime(true)-$t; $t=microtime(true); $i=0; while(list(,$i)=each($c))$c[$i]; $r[2]+=microtime(true)-$t; } var_dump($r); */
Output for 4.3.0 - 7.1.0