3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php while($i++<100)echo($i++%3?'':fizz).($i%5?'':buzz)?:$i;
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: i in /in/J11kP on line 3 2 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz68 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/J11kP on line 3 fizzbuzz1214 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz18 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/J11kP on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz2426 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/J11kP on line 3 buzz32 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz3638 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/J11kP on line 3 fizzbuzz4244 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz48 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/J11kP on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz5456 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/J11kP on line 3 buzz62 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz6668 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/J11kP on line 3 fizzbuzz7274 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz78 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/J11kP on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz8486 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/J11kP on line 3 buzz92 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 fizz9698 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/J11kP on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/J11kP on line 3 fizzbuzz
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/J11kP on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected ':' in /in/J11kP on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/J11kP on line 3
Process exited with code 255.