3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a='26.15'; $b='0.00'; if ($a && $b) { $discount = @round($promotion_temp * 10 / $price_temp, 2); if(empty($discount))discount=''; $discount = "" . $discount; echo $discount; }else{ echo 'fail'; }
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected '=' in /in/COp7b on line 7
Process exited with code 255.

preferences:
164.93 ms | 1399 KiB | 23 Q