3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $items = 3; if($items > 5) { $var1 = "You get a 10% discount!"; echo $var1; } else { $var2 = "You get a 5% discount!"; echo $var2; } ?>