3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ($i = 1; $i <= 20; $i++) { echo number_format((float)$i, 15, '.', '')."\n"; }
Output for 8.4.1 - 8.4.28, 8.5.0 - 8.5.13, 8.6.0
1.000000000000000 2.000000000000000 3.000000000000000 4.000000000000000 5.000000000000001 6.000000000000001 7.000000000000001 8.000000000000002 9.000000000000002 10.000000000000000 11.000000000000000 12.000000000000000 13.000000000000000 14.000000000000000 15.000000000000000 16.000000000000000 17.000000000000000 18.000000000000000 19.000000000000000 20.000000000000000
Output for 8.1.34, 8.2.0 - 8.2.36, 8.3.0 - 8.3.37
1.000000000000000 2.000000000000000 3.000000000000000 4.000000000000000 5.000000000000000 6.000000000000000 7.000000000000000 8.000000000000000 9.000000000000000 10.000000000000000 11.000000000000000 12.000000000000000 13.000000000000000 14.000000000000000 15.000000000000000 16.000000000000000 17.000000000000000 18.000000000000000 19.000000000000000 20.000000000000000

preferences:
16.23 ms | 1168 KiB | 6 Q