3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $where = array('key' => 'value'); var_dump($a, $b = each($where));
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: a in /in/02r7S on line 5 NULL array(4) { [1]=> string(5) "value" ["value"]=> string(5) "value" [0]=> string(3) "key" ["key"]=> string(3) "key" }
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/02r7S on line 5 NULL array(4) { [1]=> string(5) "value" ["value"]=> string(5) "value" [0]=> string(3) "key" ["key"]=> string(3) "key" }