3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach (range(1, 100) as $i) { if (!($i % 3) || !($i % 5)) { if (!($i % 3)) echo 'Fizz'; if (!($i % 5)) echo 'Buzz'; } else { echo $i; } echo PHP_EOL; }
based on GqgS2
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 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.3.0 - 4.3.9, 5.0.0 - 5.0.1
1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL4 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL7 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL8 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL11 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL13 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL14 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL16 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL17 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL19 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL22 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL23 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL26 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL28 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL29 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL31 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL32 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL34 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL37 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL38 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL41 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL43 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL44 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL46 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL47 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL49 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL52 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL53 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL56 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL58 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL59 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL61 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL62 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL64 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL67 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL68 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL71 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL73 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL74 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL76 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL77 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL79 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL82 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL83 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL86 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL88 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL89 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizzBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL91 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL92 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL94 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL97 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL98 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLFizz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOLBuzz Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/sjcm8 on line 10 PHP_EOL