3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $normal = '0.00000240'; $direct = bcmul($normal, 1 / 3, 8); $referral = bcdiv($normal, '4', 8); $difference = bcsub(bcsub($normal, $direct, 8), $referral, 8); var_dump($direct, $referral, bcmul($difference, 30000 * 31, 8));
based on LktOS
Output for 4.3.0 - 7.1.0
string(10) "0.00000079" string(10) "0.00000060" string(10) "0.93930000"