3v4l.org

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