3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = array(10 => 1, "ten" => 2); while(list($k,$v) = each($tmp)){ var_dump("Key: $k and Value: $v"); }

preferences:
45.26 ms | 402 KiB | 5 Q