3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a='26.15'; $b='1.00'; if ($a && $b) { $discount = @round($promotion_temp * 10 / $price_temp, 2); if(empty($discount))$discount=''; $discount = "" . $discount; echo $discount; }else{ echo 'fail'; }
based on 4qQr7
Output for 7.0.0 - 7.2.0
NAN
Output for 5.3.20 - 5.6.28