3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach (range(1, 100) as $i) { if (!($a=$i % 3) || !($b=$i % 5)) { if (!$a) echo 'Fizz'; if (!$b) echo 'Buzz'; } else { echo $i; } echo PHP_EOL; }
based on 8uXdg
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1 2 Fizz 4 Buzz FizzBuzz 7 8 Fizz Buzz 11 Fizz 13 14 Fizz 16 17 Fizz 19 Buzz FizzBuzz 22 23 Fizz Buzz 26 Fizz 28 29 Fizz 31 32 Fizz 34 Buzz FizzBuzz 37 38 Fizz Buzz 41 Fizz 43 44 Fizz 46 47 Fizz 49 Buzz FizzBuzz 52 53 Fizz Buzz 56 Fizz 58 59 Fizz 61 62 Fizz 64 Buzz FizzBuzz 67 68 Fizz Buzz 71 Fizz 73 74 Fizz 76 77 Fizz 79 Buzz FizzBuzz 82 83 Fizz Buzz 86 Fizz 88 89 Fizz 91 92 Fizz 94 Buzz FizzBuzz 97 98 Fizz Buzz
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL4 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL7 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL8 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL11 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL13 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL16 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL17 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL19 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL22 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL23 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL26 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL28 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL29 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL31 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL32 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL34 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL38 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL41 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL43 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL44 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL46 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL47 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL49 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL52 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL53 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL56 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL58 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL59 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL61 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL62 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL64 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL67 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL68 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL71 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL73 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL74 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL76 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL77 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL79 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL82 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL83 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL86 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL88 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL89 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL91 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL92 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL94 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL97 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL98 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/MjmqQ on line 10 PHP_EOL