3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
160.92 ms | 1394 KiB | 8 Q