3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tmp = array(10 => 1, "ten" => 2); while(list($k,$v) = each($tmp)){ var_dump("Key: $k and Value: $v"); }
Output for 7.2.0 - 7.2.6
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/XHUPZ on line 4 string(20) "Key: 10 and Value: 1" string(21) "Key: ten and Value: 2"
Output for 4.3.0 - 7.1.20
string(20) "Key: 10 and Value: 1" string(21) "Key: ten and Value: 2"