3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tmp = array(10 => 1, "ten" => 2); while(list($k,$v) = each($tmp)){ var_dump("$k: $v"); }
Output for 4.3.0 - 7.1.0
string(5) "10: 1" string(6) "ten: 2"