3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $final_amount = 18153.60 - 6353.75; var_dump($final_amount)."\n"; var_dump($final_amount * 100); var_dump(floor($final_amount * 100)); $final_amount = floor($final_amount * 100) / 100; var_dump($final_amount);
based on IdYgg
Output for 4.3.0 - 7.2.0
float(11799.85) float(1179985) float(1179984) float(11799.84)