3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 123.456789; echo round($a, 2). "\n"; echo sprintf('%01.2F', $a). "\n"; echo bcmul($a, 100). "\n";
Output for 4.3.10 - 4.4.9, 5.0.3 - 7.1.0
123.46 123.46 12345
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.2
123.46 12345
Output for 4.3.0 - 4.3.1
123.46 12300