3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach (range(1,100) as $num) { if ($num % 15) { echo 'FizzBuzz' . PHP_EOL; } elseif ($num % 5) { echo 'Buzz' . PHP_EOL; } elseif ($num % 3) { echo 'Fizz' . PHP_EOL; } else { echo $num . PHP_EOL; } }
based on pgmLA
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
FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz 15 FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz 30 FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz 45 FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz 60 FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz 75 FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz 90 FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz FizzBuzz
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 11 15PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 11 30PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 11 45PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 11 60PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 11 75PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 11 90PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/nYF1r on line 5 FizzBuzzPHP_EOL