3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array("foo" => "bar"); var_dump(each($a)); var_dump(each($a)); var_dump(each($a));
Output for 4.3.0 - 7.1.0
array(4) { [1]=> string(3) "bar" ["value"]=> string(3) "bar" [0]=> string(3) "foo" ["key"]=> string(3) "foo" } bool(false) bool(false)