3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 1; $i <= 100; $i++) { switch($i) { case($i % 3 == 0): print "Fizz"; continue 2; case($i % 5 == 0): print "Buzz"; continue 2; default: print $i; break; } print "\n"; }
based on 5f3Rk
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1 2 Fizz4 BuzzFizz7 8 FizzBuzz11 Fizz13 14 Fizz16 17 Fizz19 BuzzFizz22 23 FizzBuzz26 Fizz28 29 Fizz31 32 Fizz34 BuzzFizz37 38 FizzBuzz41 Fizz43 44 Fizz46 47 Fizz49 BuzzFizz52 53 FizzBuzz56 Fizz58 59 Fizz61 62 Fizz64 BuzzFizz67 68 FizzBuzz71 Fizz73 74 Fizz76 77 Fizz79 BuzzFizz82 83 FizzBuzz86 Fizz88 89 Fizz91 92 Fizz94 BuzzFizz97 98 FizzBuzz