3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i <= 100; $i++) { echo $i; echo "\n"; if($i % 2 == 0) { echo "par"; } else { echo "impar"; } ?>
Output for 7.0.0 - 7.0.23, 7.1.0 - 7.1.9
Parse error: syntax error, unexpected end of file in /in/Yt9oI on line 20
Process exited with code 255.

preferences:
171.65 ms | 1399 KiB | 41 Q