3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 99; while ($i > 0) { if ($i == 1) { print "$i bottle of beer on the wall<br />"; $i--; } else { print "$i bottles of beer on the wall<br />"; $i--; } }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
99 bottles of beer on the wall<br />98 bottles of beer on the wall<br />97 bottles of beer on the wall<br />96 bottles of beer on the wall<br />95 bottles of beer on the wall<br />94 bottles of beer on the wall<br />93 bottles of beer on the wall<br />92 bottles of beer on the wall<br />91 bottles of beer on the wall<br />90 bottles of beer on the wall<br />89 bottles of beer on the wall<br />88 bottles of beer on the wall<br />87 bottles of beer on the wall<br />86 bottles of beer on the wall<br />85 bottles of beer on the wall<br />84 bottles of beer on the wall<br />83 bottles of beer on the wall<br />82 bottles of beer on the wall<br />81 bottles of beer on the wall<br />80 bottles of beer on the wall<br />79 bottles of beer on the wall<br />78 bottles of beer on the wall<br />77 bottles of beer on the wall<br />76 bottles of beer on the wall<br />75 bottles of beer on the wall<br />74 bottles of beer on the wall<br />73 bottles of beer on the wall<br />72 bottles of beer on the wall<br />71 bottles of beer on the wall<br />70 bottles of beer on the wall<br />69 bottles of beer on the wall<br />68 bottles of beer on the wall<br />67 bottles of beer on the wall<br />66 bottles of beer on the wall<br />65 bottles of beer on the wall<br />64 bottles of beer on the wall<br />63 bottles of beer on the wall<br />62 bottles of beer on the wall<br />61 bottles of beer on the wall<br />60 bottles of beer on the wall<br />59 bottles of beer on the wall<br />58 bottles of beer on the wall<br />57 bottles of beer on the wall<br />56 bottles of beer on the wall<br />55 bottles of beer on the wall<br />54 bottles of beer on the wall<br />53 bottles of beer on the wall<br />52 bottles of beer on the wall<br />51 bottles of beer on the wall<br />50 bottles of beer on the wall<br />49 bottles of beer on the wall<br />48 bottles of beer on the wall<br />47 bottles of beer on the wall<br />46 bottles of beer on the wall<br />45 bottles of beer on the wall<br />44 bottles of beer on the wall<br />43 bottles of beer on the wall<br />42 bottles of beer on the wall<br />41 bottles of beer on the wall<br />40 bottles of beer on the wall<br />39 bottles of beer on the wall<br />38 bottles of beer on the wall<br />37 bottles of beer on the wall<br />36 bottles of beer on the wall<br />35 bottles of beer on the wall<br />34 bottles of beer on the wall<br />33 bottles of beer on the wall<br />32 bottles of beer on the wall<br />31 bottles of beer on the wall<br />30 bottles of beer on the wall<br />29 bottles of beer on the wall<br />28 bottles of beer on the wall<br />27 bottles of beer on the wall<br />26 bottles of beer on the wall<br />25 bottles of beer on the wall<br />24 bottles of beer on the wall<br />23 bottles of beer on the wall<br />22 bottles of beer on the wall<br />21 bottles of beer on the wall<br />20 bottles of beer on the wall<br />19 bottles of beer on the wall<br />18 bottles of beer on the wall<br />17 bottles of beer on the wall<br />16 bottles of beer on the wall<br />15 bottles of beer on the wall<br />14 bottles of beer on the wall<br />13 bottles of beer on the wall<br />12 bottles of beer on the wall<br />11 bottles of beer on the wall<br />10 bottles of beer on the wall<br />9 bottles of beer on the wall<br />8 bottles of beer on the wall<br />7 bottles of beer on the wall<br />6 bottles of beer on the wall<br />5 bottles of beer on the wall<br />4 bottles of beer on the wall<br />3 bottles of beer on the wall<br />2 bottles of beer on the wall<br />1 bottle of beer on the wall<br />