3v4l.org

run code in 300+ PHP versions simultaneously
<?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'; }

preferences:
48.92 ms | 402 KiB | 5 Q