3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php <?php $a = [1,2,3,4,5]; foreach($a as $k => $v){ $a[$k] = $v * 2; } var_dump($a);
Output for 7.1.7
Parse error: syntax error, unexpected '<', expecting end of file in /in/GcohE on line 3
Process exited with code 255.