3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $my_num = 131510; $dec = number_format($my_num / 100, 2, '.', ','); echo $dec . "\n"; echo (float) $dec; $foo = "105"; echo number_format((float)$foo, 2, '.', ''); // Outputs -> 105.00
based on 4n8Pe
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
1,315.10 1105.00