3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $total = 38.500000; $newTotal = number_format($total,2); echo $newTotal . "\n"; echo sprintf("%s", $newTotal);
Output for 4.3.0 - 7.1.0
38.50 38.50