3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php while($i++<100)echo($i%3?'':fizz).($i%5?'':buzz)?:$i,"\n";
based on EuqqK
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: i in /in/lu2qM on line 3 1 2 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 4 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 7 8 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz 11 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 13 14 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 fizzbuzz 16 17 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 19 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 22 23 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz 26 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 28 29 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 fizzbuzz 31 32 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 34 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 37 38 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz 41 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 43 44 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 fizzbuzz 46 47 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 49 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 52 53 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz 56 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 58 59 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 fizzbuzz 61 62 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 64 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 67 68 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz 71 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 73 74 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 fizzbuzz 76 77 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 79 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 82 83 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz 86 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 88 89 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 fizzbuzz 91 92 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 94 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 97 98 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz
Output for hhvm-3.10.0 - 3.13.2
Notice: Undefined variable: i in /in/lu2qM on line 3 1 2 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 4 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 7 8 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz 11 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 13 14 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 fizzbuzz 16 17 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 19 Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 22 23 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz Notice: Use of undefined constant buzz - assumed 'buzz' in /in/lu2qM on line 3 buzz 26 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizz 28 29 Notice: Use of undefined constant fizz - assumed 'fizz' in /in/lu2qM on line 3 fizzbuzz 31 32 fizz 34 buzz fizz 37 38 fizz buzz 41 fizz 43 44 fizzbuzz 46 47 fizz 49 buzz fizz 52 53 fizz buzz 56 fizz 58 59 fizzbuzz 61 62 fizz 64 buzz fizz 67 68 fizz buzz 71 fizz 73 74 fizzbuzz 76 77 fizz 79 buzz fizz 82 83 fizz buzz 86 fizz 88 89 fizzbuzz 91 92 fizz 94 buzz fizz 97 98 fizz buzz
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/lu2qM 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/lu2qM on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/lu2qM on line 3
Process exited with code 255.