3v4l.org

run code in 300+ PHP versions simultaneously
<?php print("Hello World") for(int i= 1; i<=10; i++) print(i); print(2) ?>
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected 'for' (T_FOR) in /in/dflss on line 4
Process exited with code 255.

preferences:
169.99 ms | 1399 KiB | 36 Q