3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 2, 3); $b = array( 'lol' => 'whut', 'ohgod' => 'why', 'please' => 'stop', ); next($b); foreach ($a as $v) { var_dump($v); if ($v == 2) { // this array is lame, let's bail $a = $b; } }

preferences:
71.93 ms | 402 KiB | 5 Q