3v4l.org

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