3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * @file A fizzbuzz reference implementation. * @author Brad Czerniak (ao5357@gmail.com) */ $i = 1; while($i > 100){ if($i % 15){ echo 'fizzbuzz';} elseif($i % 5){ echo 'buzz';} elseif($i % 3){ echo 'fizz';} else{ echo $i;} echo "\n"; $i++; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0