3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 1; $i <= 100; $i++) { if($i%3==0) echo "Fizz"; if($i%5==0) echo "Buzz"; else echo $i; echo "\n"; }
based on Nis3V
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1 2 Fizz3 4 Buzz Fizz6 7 8 Fizz9 Buzz 11 Fizz12 13 14 FizzBuzz 16 17 Fizz18 19 Buzz Fizz21 22 23 Fizz24 Buzz 26 Fizz27 28 29 FizzBuzz 31 32 Fizz33 34 Buzz Fizz36 37 38 Fizz39 Buzz 41 Fizz42 43 44 FizzBuzz 46 47 Fizz48 49 Buzz Fizz51 52 53 Fizz54 Buzz 56 Fizz57 58 59 FizzBuzz 61 62 Fizz63 64 Buzz Fizz66 67 68 Fizz69 Buzz 71 Fizz72 73 74 FizzBuzz 76 77 Fizz78 79 Buzz Fizz81 82 83 Fizz84 Buzz 86 Fizz87 88 89 FizzBuzz 91 92 Fizz93 94 Buzz Fizz96 97 98 Fizz99 Buzz