3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a='26.15'; $b='0.00'; if ($a && $b) { $discount = round($promotion_temp * 10 / $price_temp, 2); echo $discount; }else{ echo 'fail'; }
based on 35nUH
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: promotion_temp in /in/iH9Oa on line 6 Notice: Undefined variable: price_temp in /in/iH9Oa on line 6 Warning: Division by zero in /in/iH9Oa on line 6 NAN
Output for 5.3.20 - 5.6.28
Notice: Undefined variable: promotion_temp in /in/iH9Oa on line 6 Notice: Undefined variable: price_temp in /in/iH9Oa on line 6 Warning: Division by zero in /in/iH9Oa on line 6 0