3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $normal = '0.00000240'; $direct = bcdiv($normal, '3', 8); $referral = bcdiv($normal, '4', 8); $difference = bcsub(bcsub($normal, $direct, 8), $referral, 8); var_dump($direct, $referral, $difference);
based on 9U1ZB
Output for 4.3.0 - 7.2.0
string(10) "0.00000080" string(10) "0.00000060" string(10) "0.00000100"