3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 20; ++$i) { echo str_pad($i, 2, '0', STR_PAD_LEFT) . ': '; if ($i % 3 === 0) { echo 'Fizz'; } if ($i % 5 === 0) { echo 'Buzz'; } echo "\n"; }
based on AtLlh
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0alpha1
00: FizzBuzz 01: 02: 03: Fizz 04: 05: Buzz 06: Fizz 07: 08: 09: Fizz 10: Buzz 11: 12: Fizz 13: 14: 15: FizzBuzz 16: 17: 18: Fizz 19: