3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<pre> <?php $a=598; $b=0.08; //消費税 $c=$a*$b; //税込金額が少数切り捨てで表示されるように echo float($c); ?> </pre>
based on FUHrh
Output for 7.0.0 - 7.2.0
<pre> Fatal error: Uncaught Error: Call to undefined function float() in /in/skRhq:8 Stack trace: #0 {main} thrown in /in/skRhq on line 8
Process exited with code 255.
Output for 5.3.19 - 5.6.28
<pre> Fatal error: Call to undefined function float() in /in/skRhq on line 8
Process exited with code 255.