3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myArray=array('aa','bb','cc','dd'); while (list ($key, $val) = each ($myArray) ) echo $val; reset($myArray); while (list ($key, $val) = each ($myArray) ) echo $val;
Output for 7.2.0
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/OcjvT on line 4 aabbccddaabbccdd
Output for 5.3.17 - 7.1.10
aabbccddaabbccdd