3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_num = 131510; $dec = number_format($my_num / 100, 2, '.'); echo $dec . "\n"; echo floatval($dec);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
1,315.10 1
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Wrong parameter count for number_format() in /in/PtMBP on line 5 0

preferences:
141.52 ms | 402 KiB | 199 Q