3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function fizzBuzz($n) { if !($n % 3) echo "Fizz"; if !($n % 5) echo "Buzz"; echo "\n"; return $n; } foreach (range(1,100) as $n) echo fizzBuzz($n) . "\n";
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '!', expecting '(' in /in/fIvup on line 4
Process exited with code 255.