3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(0=>'a',1=>'b',2=>'c',3=>'d'); foreach(list($k, $v) = each($a)): echo $k.'<br/>'; echo $v.'<br/>'; endforeach; ?>
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
Parse error: syntax error, unexpected ')' in /in/3aGdV on line 4
Process exited with code 255.

preferences:
179.98 ms | 1395 KiB | 64 Q