3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array("foo" => "bar"); var_dump(each($a)); var_dump(each($a)); var_dump(each($a));
Output for 7.2.0
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/huoas on line 3 array(4) { [1]=> string(3) "bar" ["value"]=> string(3) "bar" [0]=> string(3) "foo" ["key"]=> string(3) "foo" } bool(false) bool(false)
Output for 4.3.0 - 7.1.10
array(4) { [1]=> string(3) "bar" ["value"]=> string(3) "bar" [0]=> string(3) "foo" ["key"]=> string(3) "foo" } bool(false) bool(false)