3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @file A fizzbuzz reference implementation. * @author Brad Czerniak (ao5357@gmail.com) */ $i = 1; while($i > 100){ if($i !% 15){ echo 'fizzbuzz';} elseif($i !% 5){ echo 'buzz';} elseif($i !% 3){ echo 'fizz';} else{ echo $i;} echo "\n"; $i++; }
Output for 5.3.0 - 5.3.20, 5.4.0 - 5.4.10
Parse error: syntax error, unexpected '!' in QFrOb on line 9
Process exited with code 255.

preferences:
175.85 ms | 1395 KiB | 39 Q