3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = 2900; echo "Unformated: ".$value."<br />"; echo "Using number_format: ".number_format($value, 2, ',', '.')."<br />"; echo "Crosscheck: ".number_format(2900, 2, ',', '.')."<br />";
Output for 4.3.0 - 7.1.0
Unformated: 2900<br />Using number_format: 2.900,00<br />Crosscheck: 2.900,00<br />