3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 0; while($i++<100)echo$i%3?!$$i=$i:"Fizz",$i%5?$$i:"Buzz","\n";
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
1 2 Fizz Notice: Undefined variable: 3 in /in/pbLLC on line 3 4 Buzz Fizz Notice: Undefined variable: 6 in /in/pbLLC on line 3 7 8 Fizz Notice: Undefined variable: 9 in /in/pbLLC on line 3 Buzz 11 Fizz Notice: Undefined variable: 12 in /in/pbLLC on line 3 13 14 FizzBuzz 16 17 Fizz Notice: Undefined variable: 18 in /in/pbLLC on line 3 19 Buzz Fizz Notice: Undefined variable: 21 in /in/pbLLC on line 3 22 23 Fizz Notice: Undefined variable: 24 in /in/pbLLC on line 3 Buzz 26 Fizz Notice: Undefined variable: 27 in /in/pbLLC on line 3 28 29 FizzBuzz 31 32 Fizz Notice: Undefined variable: 33 in /in/pbLLC on line 3 34 Buzz Fizz Notice: Undefined variable: 36 in /in/pbLLC on line 3 37 38 Fizz Notice: Undefined variable: 39 in /in/pbLLC on line 3 Buzz 41 Fizz Notice: Undefined variable: 42 in /in/pbLLC on line 3 43 44 FizzBuzz 46 47 Fizz Notice: Undefined variable: 48 in /in/pbLLC on line 3 49 Buzz Fizz Notice: Undefined variable: 51 in /in/pbLLC on line 3 52 53 Fizz Notice: Undefined variable: 54 in /in/pbLLC on line 3 Buzz 56 Fizz Notice: Undefined variable: 57 in /in/pbLLC on line 3 58 59 FizzBuzz 61 62 Fizz Notice: Undefined variable: 63 in /in/pbLLC on line 3 64 Buzz Fizz Notice: Undefined variable: 66 in /in/pbLLC on line 3 67 68 Fizz Notice: Undefined variable: 69 in /in/pbLLC on line 3 Buzz 71 Fizz Notice: Undefined variable: 72 in /in/pbLLC on line 3 73 74 FizzBuzz 76 77 Fizz Notice: Undefined variable: 78 in /in/pbLLC on line 3 79 Buzz Fizz Notice: Undefined variable: 81 in /in/pbLLC on line 3 82 83 Fizz Notice: Undefined variable: 84 in /in/pbLLC on line 3 Buzz 86 Fizz Notice: Undefined variable: 87 in /in/pbLLC on line 3 88 89 FizzBuzz 91 92 Fizz Notice: Undefined variable: 93 in /in/pbLLC on line 3 94 Buzz Fizz Notice: Undefined variable: 96 in /in/pbLLC on line 3 97 98 Fizz Notice: Undefined variable: 99 in /in/pbLLC on line 3 Buzz
Output for hhvm-3.10.0 - 3.12.0
1 2 Fizz Notice: Undefined variable: 3 in /in/pbLLC on line 3 4 Buzz Fizz Notice: Undefined variable: 6 in /in/pbLLC on line 3 7 8 Fizz Notice: Undefined variable: 9 in /in/pbLLC on line 3 Buzz 11 Fizz Notice: Undefined variable: 12 in /in/pbLLC on line 3 13 14 FizzBuzz 16 17 Fizz Notice: Undefined variable: 18 in /in/pbLLC on line 3 19 Buzz Fizz Notice: Undefined variable: 21 in /in/pbLLC on line 3 22 23 Fizz Notice: Undefined variable: 24 in /in/pbLLC on line 3 Buzz 26 Fizz Notice: Undefined variable: 27 in /in/pbLLC on line 3 28 29 FizzBuzz 31 32 Fizz Notice: Undefined variable: 33 in /in/pbLLC on line 3 34 Buzz Fizz Notice: Undefined variable: 36 in /in/pbLLC on line 3 37 38 Fizz Notice: Undefined variable: 39 in /in/pbLLC on line 3 Buzz 41 Fizz Notice: Undefined variable: 42 in /in/pbLLC on line 3 43 44 FizzBuzz 46 47 Fizz Notice: Undefined variable: 48 in /in/pbLLC on line 3 49 Buzz Fizz Notice: Undefined variable: 51 in /in/pbLLC on line 3 52 53 Fizz Notice: Undefined variable: 54 in /in/pbLLC on line 3 Buzz 56 Fizz Notice: Undefined variable: 57 in /in/pbLLC on line 3 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.3.0 - 5.0.3
1 2 Fizz Notice: Undefined variable: 3 in /in/pbLLC on line 3 4 Buzz Fizz Notice: Undefined variable: 6 in /in/pbLLC on line 3 7 8 Fizz Notice: Undefined variable: 9 in /in/pbLLC on line 3 Buzz 11 Fizz Notice: Undefined variable: 12 in /in/pbLLC on line 3 13 14 FizzBuzz 16 17 Fizz Notice: Undefined variable: 18 in /in/pbLLC on line 3 19 Buzz Fizz Notice: Undefined variable: 21 in /in/pbLLC on line 3 22 23 Fizz Notice: Undefined variable: 24 in /in/pbLLC on line 3 Buzz 26 Fizz Notice: Undefined variable: 27 in /in/pbLLC on line 3 28 29 FizzBuzz 31 32 Fizz Notice: Undefined variable: 33 in /in/pbLLC on line 3 34 Buzz Fizz Notice: Undefined variable: 36 in /in/pbLLC on line 3 37 38 Fizz Notice: Undefined variable: 39 in /in/pbLLC on line 3 Buzz 41 Fizz Notice: Undefined variable: 42 in /in/pbLLC on line 3 43 44 FizzBuzz 46 47 Fizz Notice: Undefined variable: 48 in /in/pbLLC on line 3 49 Buzz Fizz Notice: Undefined variable: 51 in /in/pbLLC on line 3 52 53 Fizz Notice: Undefined variable: 54 in /in/pbLLC on line 3 Buzz 56 Fizz Notice: Undefined variable: 57 in /in/pbLLC on line 3 58 59 FizzBuzz 61 62 Fizz Notice: Undefined variable: 63 in /in/pbLLC on line 3 64 Buzz Fizz Notice: Undefined variable: 66 in /in/pbLLC on line 3 67 68 Fizz Notice: Undefined variable: 69 in /in/pbLLC on line 3 Buzz 71 Fizz Notice: Undefined variable: 72 in /in/pbLLC on line 3 73 74 FizzBuzz 76 77 Fizz Notice: Undefined variable: 78 in /in/pbLLC on line 3 79 Buzz Fizz Notice: Undefined variable: 81 in /in/pbLLC on line 3 82 83 Fizz Notice: Undefined variable: 84 in /in/pbLLC on line 3 Buzz 86 Fizz Notice: Undefined variable: 87 in /in/pbLLC on line 3 88 89 FizzBuzz 91 92 Fizz Notice: Undefined variable: 93 in /in/pbLLC on line 3 94 Buzz Fizz Notice: Undefined variable: 96 in /in/pbLLC on line 3 97 98 Fizz Notice: Undefined variable: 99 in /in/pbLLC on line 3 Buzz