3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(number_format(3.10000000000000000, 2));
Output for 7.1.25 - 7.3.1
string(4) "3.10"