3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(defined('DECIMAL_POINT'), DECIMAL_POINT); defined('DECIMAL_POINT') or define('DECIMAL_POINT',2); $number=1000000; $amount = number_format($number,2, '.', ''); echo $amount;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.00.0140.00719.96
8.4.150.0020.00114.05
8.4.140.0130.00817.30
8.4.130.0120.00717.79
8.4.120.0120.00922.45
8.4.110.0100.01022.25
8.4.100.0140.00717.64
8.4.90.0110.00918.74
8.4.80.0120.00917.65
8.4.70.0100.00417.46
8.4.60.0140.00618.81
8.4.50.0090.00920.66
8.4.40.0120.00617.50
8.4.30.0040.01522.33
8.4.20.0140.00722.43
8.4.10.0000.00823.87
8.3.280.0080.01218.27
8.3.270.0130.00816.70
8.3.260.0120.00816.45
8.3.250.0130.00618.77
8.3.240.0130.00716.77
8.3.230.0140.00516.41
8.3.220.0130.00517.10
8.3.210.0040.00416.54
8.3.200.0080.00116.51
8.3.190.0100.00617.18
8.3.180.0120.00716.68
8.3.170.0040.01516.91
8.3.160.0090.01018.27
8.3.150.0120.00620.69
8.3.140.0060.00316.24
8.3.130.0110.00418.22
8.3.120.0100.01018.34
8.3.110.0130.00318.02
8.3.100.0090.00918.32
8.3.90.0050.00526.77
8.3.80.0060.00318.43
8.3.70.0140.00316.38
8.3.60.0060.01218.05
8.3.50.0100.00716.34
8.3.40.0070.00721.82
8.3.30.0090.00920.25
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0080.00026.16
8.2.290.0050.00420.20
8.2.280.0110.00318.91
8.2.270.0060.01217.25
8.2.260.0120.00619.04
8.2.250.0070.00416.57
8.2.240.0030.00618.93
8.2.230.0050.00520.94
8.2.220.0100.01024.06
8.2.210.0080.00326.77
8.2.200.0090.00318.43
8.2.190.0160.00616.58
8.2.180.0180.00418.29
8.2.170.0150.00018.95
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00422.39
8.2.110.0060.00319.37
8.2.100.0090.00317.91
8.2.90.0150.00818.77
8.2.80.0180.00518.77
8.2.70.0000.01318.77
8.2.60.0150.00318.77
8.2.50.0180.00418.77
8.2.40.0140.00818.77
8.2.30.0140.00718.77
8.2.20.0200.00018.77
8.2.10.0150.00418.77
8.2.00.0140.00418.77
8.1.330.0100.00823.54
8.1.320.0110.00916.25
8.1.310.0030.00516.65
8.1.300.0090.00017.70
8.1.290.0120.00030.84
8.1.280.0120.00625.92
8.1.270.0050.00224.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.57
8.1.230.0000.01220.87
8.1.220.0160.00318.77
8.1.210.0090.00518.77
8.1.200.0140.00718.77
8.1.190.0150.00418.77
8.1.180.0140.00518.77
8.1.170.0120.00618.77
8.1.160.0140.00618.77
8.1.150.0120.00918.77
8.1.140.0190.00018.77
8.1.130.0110.00718.77
8.1.120.0160.00318.77
8.1.110.0160.00218.77
8.1.100.0130.00618.77
8.1.90.0160.00318.77
8.1.80.0120.00818.77
8.1.70.0110.00818.77
8.1.60.0130.00918.77
8.1.50.0090.01118.77
8.1.40.0130.00918.77
8.1.30.0130.00818.77
8.1.20.0140.00718.77
8.1.10.0100.01018.77
8.1.00.0160.00318.77
8.0.300.0160.00318.77
8.0.290.0080.01018.77
8.0.280.0170.00018.77
8.0.270.0150.00218.77
8.0.260.0090.00918.77
8.0.250.0160.00318.77
8.0.240.0150.00418.77
8.0.230.0070.01118.77
8.0.220.0110.00918.77
8.0.210.0140.00718.77
8.0.200.0190.00018.77
8.0.190.0090.00918.77
8.0.180.0140.00618.77
8.0.170.0140.00618.77
8.0.160.0150.00318.77
8.0.150.0120.00718.77
8.0.140.0090.00918.77
8.0.130.0120.00618.77
8.0.120.0100.00518.77
8.0.110.0080.00818.77
8.0.100.0110.00418.77
8.0.90.0080.00818.77
8.0.80.0050.01118.77
8.0.70.0120.00218.77
8.0.60.0100.00718.77
8.0.50.0100.00718.77
8.0.30.0140.00218.77
8.0.20.0120.00618.77
8.0.10.0160.00018.77

preferences:
98.31 ms | 403 KiB | 5 Q