3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $c = range(0,100000-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 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: range in /in/X34Fi on line 4
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: range in /in/X34Fi on line 4