3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($n = 1; $n < 100; ++$n) { if (($n % 15) == 0) print "FizzBuzz"; else if (($n % 5) == 0) print "Buzz"; else if (($n % 3) == 0) print "Fizz"; else print $n print " "; } ?>
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'print' (T_PRINT) in /in/EC7oE on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_PRINT in /in/EC7oE on line 11
Process exited with code 255.

preferences:
191.03 ms | 1395 KiB | 64 Q