3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo number_format(1.110, 2)."\n"; echo number_format(1.111, 2)."\n"; echo number_format(1.112, 2)."\n"; echo number_format(1.113, 2)."\n"; echo number_format(1.114, 2)."\n"; echo number_format(1.115, 2)."\n"; echo number_format(1.116, 2)."\n"; echo number_format(1.117, 2)."\n"; echo number_format(1.118, 2)."\n"; echo number_format(1.119, 2)."\n";
Output for 4.3.5 - 7.1.0
1.11 1.11 1.11 1.11 1.11 1.12 1.12 1.12 1.12 1.12
Output for 4.3.0 - 4.3.4
1.11 1.11 1.11 1.11 1.11 1.11 1.12 1.12 1.12 1.12