3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i=1; $i<=100; $i++) { if($i%2) { echo "fizz"; } if ($i%3) { echo "buzz"; } if (!($i%2 || $i%3)) { echo $i; } echo "\n"; }
based on d0U4u
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
fizzbuzz buzz fizz buzz fizzbuzz 6 fizzbuzz buzz fizz buzz fizzbuzz 12 fizzbuzz buzz fizz buzz fizzbuzz 18 fizzbuzz buzz fizz buzz fizzbuzz 24 fizzbuzz buzz fizz buzz fizzbuzz 30 fizzbuzz buzz fizz buzz fizzbuzz 36 fizzbuzz buzz fizz buzz fizzbuzz 42 fizzbuzz buzz fizz buzz fizzbuzz 48 fizzbuzz buzz fizz buzz fizzbuzz 54 fizzbuzz buzz fizz buzz fizzbuzz 60 fizzbuzz buzz fizz buzz fizzbuzz 66 fizzbuzz buzz fizz buzz fizzbuzz 72 fizzbuzz buzz fizz buzz fizzbuzz 78 fizzbuzz buzz fizz buzz fizzbuzz 84 fizzbuzz buzz fizz buzz fizzbuzz 90 fizzbuzz buzz fizz buzz fizzbuzz 96 fizzbuzz buzz fizz buzz