3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 1; $i <= 100; $i++) { if ($i % 15 == 0) { echo 'FizzBuzz' . '<br />'; } elseif ($i % 5 == 0) { echo 'Buzz' . '<br />'; } elseif ($i % 3 == 0) { echo 'Fizz' . '<br />'; } else { //echo $i . '<br />'; } }
Output for 4.3.0 - 7.1.0
Fizz<br />Buzz<br />Fizz<br />Fizz<br />Buzz<br />Fizz<br />FizzBuzz<br />Fizz<br />Buzz<br />Fizz<br />Fizz<br />Buzz<br />Fizz<br />FizzBuzz<br />Fizz<br />Buzz<br />Fizz<br />Fizz<br />Buzz<br />Fizz<br />FizzBuzz<br />Fizz<br />Buzz<br />Fizz<br />Fizz<br />Buzz<br />Fizz<br />FizzBuzz<br />Fizz<br />Buzz<br />Fizz<br />Fizz<br />Buzz<br />Fizz<br />FizzBuzz<br />Fizz<br />Buzz<br />Fizz<br />Fizz<br />Buzz<br />Fizz<br />FizzBuzz<br />Fizz<br />Buzz<br />Fizz<br />Fizz<br />Buzz<br />