3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = '2.00'; var_dump(number_format($data, 2, '.', '')); $data = 2.00; var_dump(number_format($data, 2, '.', ''));
Output for 4.3.0 - 7.1.0
string(4) "2.00" string(4) "2.00"