3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = -0.05648055; $b = -0.00000545; echo $a; $c = bcadd($a,$b,9); $d = $a+$b; echo $c; // => -0.05648055 <- WRONG echo $d; // => -0.056486 <- CORRECT
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
-0.05648055-0.056480550-0.056486
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/Xb9UP on line 11
Process exited with code 255.