3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 22900000.002827; $b = 0.022900; $c = $a/$b; echo " c=".$c; $d = bcdiv("$a", "$b", 5); echo " d=".$d; ?>
based on MuPfu
Output for 4.3.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
c=1000000000.1234 d=1000000000.12344
Output for 4.3.0 - 4.3.1
c=1000000000.1234 d=1000000000.12314