3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $age = 19; $limit = 18; $is_milk = false; $price = 6;//beer price $money = 1; //the money he have $can_pay_it = $money > $price; $can_drink = ($age > $limit or $is_milk ) and $can_pay_it; echo true and false; //echo $can_drink ? "can drink":"no beer for you"; ?>
Output for 4.3.0 - 7.1.0