3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $range = 10; $c = range(0,$range-1); while(list($i,$v)=each($c)) { } /* $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 7.2.5 - 7.3.0alpha1
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/OkEvK on line 5
Output for 4.3.0 - 7.1.7