3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('a'=>1, 'b'=>2); while(list($key, $value) = each($a)) { var_dump($key, $value); }
Output for 7.2.0 - 7.3.0rc4
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/EZnFd on line 4 string(1) "a" int(1) string(1) "b" int(2)
Output for 4.3.0 - 7.1.20
string(1) "a" int(1) string(1) "b" int(2)