3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $normal = '0.00000240'; $direct = bcdiv($normal, '3', 8); $referral = bcdiv($normal, '4', 8); $difference = $normal - $direct - $referral; var_dump($direct, $referral, $difference);
based on OHlBE
Output for 4.3.3 - 7.1.0
string(10) "0.00000080" string(10) "0.00000060" float(1.0E-6)
Output for 4.3.0 - 4.3.2
string(10) "0.00000080" string(10) "0.00000060" float(1.E-6)