3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a'=>1, 'b'=>2); $b = true; while((list($key, $value) = each($a)) && $b) { var_dump($key, $value); $b = false; }

preferences:
36.94 ms | 402 KiB | 5 Q