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

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Arrow functions
1,315.10 1105.00

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page