3v4l.org

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