3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $money1 = 68.75; $money2 = 54.35; $money = $money1 + $money2; // echo $money will output "123.1"; $formatted = sprintf("%01.2f", $money); echo $formatted; ?>
Output for 4.3.0 - 7.2.0
123.10