3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tmp = array("a"=>"Alice", "m"=>"Mary"); while(list($k,$v) = each($tmp)){ var_dump($k,$v); }
Output for 7.2.0 - 7.3.0rc3
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/7g5iH on line 4 string(1) "a" string(5) "Alice" string(1) "m" string(4) "Mary"
Output for 4.3.0 - 7.1.20
string(1) "a" string(5) "Alice" string(1) "m" string(4) "Mary"