3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(number_format("",0)); var_dump(number_format(null,0)); var_dump(number_format(false,0)); var_dump(number_format('1234567890123',0)); var_dump(number_format(true,0));

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.3.60.0040.01218.43
8.3.50.0140.00821.89
8.3.40.0030.01218.79
8.3.30.0030.01019.23
8.3.20.0080.00020.34
8.3.10.0040.00423.30
8.3.00.0040.00420.52
8.2.180.0090.00616.50
8.2.170.0170.00022.96
8.2.160.0070.00722.25
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00319.40
8.2.110.0060.00322.11
8.2.100.0040.00717.72
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0000.01017.63
8.2.60.0000.00817.79
8.2.50.0080.00318.07
8.2.40.0030.00518.16
8.2.30.0000.00818.11
8.2.20.0000.00717.66
8.2.10.0040.00419.38
8.2.00.0040.00417.70
8.1.280.0090.00925.92
8.1.270.0050.00323.96
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.97
8.1.230.0120.00019.01
8.1.220.0000.00917.74
8.1.210.0000.00718.77
8.1.200.0040.00717.10
8.1.190.0060.00317.51
8.1.180.0050.00318.10
8.1.170.0030.00618.50
8.1.160.0000.00721.87
8.1.150.0050.00218.51
8.1.140.0040.00417.38
8.1.130.0000.00717.75
8.1.120.0070.00017.36
8.1.110.0000.00717.32
8.1.100.0070.00017.27
8.1.90.0040.00417.26
8.1.80.0050.00217.22
8.1.70.0000.00717.29
8.1.60.0060.00317.45
8.1.50.0040.00417.45
8.1.40.0040.00417.39
8.1.30.0030.00617.57
8.1.20.0040.00417.61
8.1.10.0030.00617.49
8.1.00.0070.00017.45
8.0.300.0000.00818.77
8.0.290.0000.00717.18
8.0.280.0030.00318.40
8.0.270.0040.00317.24
8.0.260.0030.00316.73
8.0.250.0030.00316.92
8.0.240.0030.00316.87
8.0.230.0000.00716.84
8.0.220.0070.00016.93
8.0.210.0070.00016.76
8.0.200.0030.00616.93
8.0.190.0030.00316.93
8.0.180.0000.01316.75
8.0.170.0040.00416.79
8.0.160.0040.00416.81
8.0.150.0050.00316.90
8.0.140.0000.00716.84
8.0.130.0000.00613.26
8.0.120.0050.00316.85
8.0.110.0050.00316.92
8.0.100.0000.00716.85
8.0.90.0000.00716.75
8.0.80.0040.01216.82
8.0.70.0050.00216.75
8.0.60.0040.00416.85
8.0.50.0040.00416.93
8.0.30.0140.00517.21
8.0.20.0130.00617.40
8.0.10.0040.00416.84
8.0.00.0120.00616.56
7.4.330.0050.00015.06
7.4.320.0000.00616.44
7.4.300.0000.00716.36
7.4.290.0070.00016.45
7.4.280.0000.00716.57
7.4.270.0030.00316.43
7.4.260.0000.00716.47
7.4.250.0060.00316.50
7.4.240.0030.00416.47
7.4.230.0070.00016.27
7.4.220.0070.01116.62
7.4.210.0120.00316.43
7.4.200.0000.00716.47
7.4.190.0030.00316.43
7.4.160.0060.01016.35
7.4.150.0070.01017.40
7.4.140.0110.00717.86
7.4.130.0060.01116.42
7.4.120.0100.00616.41
7.4.110.0080.01516.43
7.4.100.0120.00616.26
7.4.90.0090.00916.40
7.4.80.0030.01319.39
7.4.70.0030.01316.41
7.4.60.0110.00716.35
7.4.50.0030.00316.33
7.4.40.0060.00922.77
7.4.30.0060.00916.60
7.4.00.0100.00714.92
7.3.330.0030.00313.19
7.3.320.0000.00613.25
7.3.310.0040.00416.31
7.3.300.0000.00716.31
7.3.290.0150.00316.32
7.3.280.0060.00916.31
7.3.270.0140.00317.40
7.3.260.0120.00416.25
7.3.250.0090.01116.43
7.3.240.0130.00316.25
7.3.230.0040.01216.53
7.3.210.0120.00416.37
7.3.200.0030.01316.25
7.3.190.0090.01216.22
7.3.180.0120.00316.18
7.3.170.0070.01016.32
7.3.160.0160.00016.56
7.3.120.0060.01214.85
7.2.330.0070.01116.61
7.2.320.0090.01216.50
7.2.310.0090.00916.56
7.2.300.0140.00316.31
7.2.290.0040.01216.44
7.2.60.0060.01016.53
7.2.00.0030.01019.04
7.1.200.0030.00915.77
7.1.100.0110.00418.07
7.1.70.0070.00716.96
7.1.60.0100.00719.32
7.1.50.0030.01716.61
7.1.00.0000.08022.64
7.0.200.0130.00316.61
7.0.140.0030.09322.23
7.0.60.0000.04320.07
7.0.50.0070.06017.96
7.0.40.0100.08720.52
7.0.30.0430.04020.22
7.0.20.0170.04020.25
7.0.10.0130.07720.14
7.0.00.0070.05320.28
5.6.280.0130.06321.34
5.6.210.0170.07020.82
5.6.200.0130.04718.36
5.6.190.0130.08020.45
5.6.180.0300.04320.89
5.6.170.0270.08320.84
5.6.160.0070.04020.69
5.6.150.0100.08718.41
5.6.140.0070.03718.34
5.6.130.0070.08318.33
5.6.120.0030.04020.98
5.6.110.0200.07721.18
5.6.100.0000.06321.28
5.6.90.0070.05321.16
5.6.80.0130.06320.56
5.5.350.0200.03720.58
5.5.340.0130.07318.15
5.5.330.0070.03720.34
5.5.320.0000.04720.48
5.5.310.0270.07720.32
5.5.300.0030.07718.14
5.5.290.0100.08318.14
5.5.280.0070.05320.96
5.5.270.0100.08320.98
5.5.260.0100.07020.98
5.5.250.0070.07720.84
5.5.240.0230.07020.38
5.4.450.2070.04719.45
5.4.440.3170.03719.56
5.4.430.3730.04019.36
5.4.420.4130.04319.36
5.4.410.3630.03019.24
5.4.400.0070.05019.20
5.4.390.3530.04019.04
5.4.380.4200.04019.17
5.4.370.4070.03319.21
5.4.360.4070.03719.23
5.4.350.3300.03019.21
5.4.340.3030.04019.14
5.4.320.4330.03319.20
5.4.310.4130.03719.04
5.4.300.3600.03719.13
5.4.290.3630.03719.20
5.4.280.3600.04018.93
5.4.270.3470.04019.23
5.4.260.3630.03319.23
5.4.250.3830.04018.98
5.4.240.4300.03719.11
5.4.230.4000.03018.90
5.4.220.3470.04019.17
5.4.210.4300.04019.18
5.4.200.3800.03319.27
5.4.190.3570.03719.23
5.4.180.3370.03719.23
5.4.170.3530.04319.23
5.4.160.3570.03719.11
5.4.150.3230.04019.02
5.4.140.3270.03316.49
5.4.130.2900.03316.60
5.4.120.3130.03716.60
5.4.110.3570.03716.59
5.4.100.3170.04016.56
5.4.90.4200.04016.52
5.4.80.3430.03716.57
5.4.70.3600.03716.64
5.4.60.2330.03016.34
5.4.50.3530.03716.64
5.4.40.4300.04016.59
5.4.30.3830.03716.37
5.4.20.3730.04016.61
5.4.10.3730.04316.62
5.4.00.3730.03716.02
5.3.290.3770.04014.75
5.3.280.3770.04014.75
5.3.270.3370.03714.64
5.3.260.3270.03714.64
5.3.250.3230.03714.57
5.3.240.3300.03014.59
5.3.230.3330.03714.55
5.3.220.3230.03714.61
5.3.210.3430.03314.63
5.3.200.3200.03314.55
5.3.190.3700.04314.53
5.3.180.3430.03714.54
5.3.170.3370.03314.54
5.3.160.3170.04014.56
5.3.150.3270.03314.63
5.3.140.3570.04014.73
5.3.130.3830.04714.53
5.3.120.3870.03714.62
5.3.110.3730.04014.63
5.3.100.3530.03014.04
5.3.90.3430.03014.00
5.3.80.3370.03713.91
5.3.70.3230.04313.99
5.3.60.3570.03714.07
5.3.50.4370.03314.02
5.3.40.2500.03313.96
5.3.30.2970.03713.93
5.3.20.1900.04013.76
5.3.10.2400.04013.75
5.3.00.3030.03313.54
5.2.170.3530.02711.20
5.2.160.3370.04011.13
5.2.150.2700.03011.18
5.2.140.2670.02711.20
5.2.130.1430.03011.13
5.2.120.2270.01311.18
5.2.110.1970.02711.27
5.2.100.1970.02711.09
5.2.90.1870.02311.18
5.2.80.2330.02711.13
5.2.70.1130.03011.18
5.2.60.2000.03011.12
5.2.50.1400.03011.13
5.2.40.1270.02310.97
5.2.30.1370.02311.08
5.2.20.1600.04011.07
5.2.10.1870.03010.99
5.2.00.2000.02010.99
5.1.60.1600.02310.14
5.1.50.2030.02010.05
5.1.40.2500.0239.96
5.1.30.2400.02710.43
5.1.20.2570.02310.43
5.1.10.2600.02010.20
5.1.00.2500.03010.13
5.0.50.1270.0208.61
5.0.40.1730.0178.51
5.0.30.1670.0338.39
5.0.20.1530.0238.25
5.0.10.1400.0208.35
5.0.00.1300.0338.22
4.4.90.0700.0175.94
4.4.80.1130.0135.89
4.4.70.0600.0135.91
4.4.60.0900.0135.96
4.4.50.1170.0135.94
4.4.40.0970.0275.94
4.4.30.1170.0176.01
4.4.20.1570.0136.07
4.4.10.1370.0135.95
4.4.00.0970.0275.95
4.3.110.1570.0175.95
4.3.100.1100.0205.89
4.3.90.1630.0135.97
4.3.80.1670.0235.88
4.3.70.1370.0105.88
4.3.60.1500.0175.88
4.3.50.1300.0135.88
4.3.40.1270.0275.88
4.3.30.0670.0175.88
4.3.20.0500.0205.88
4.3.10.0870.0175.88
4.3.00.0730.0135.88

preferences:
59.25 ms | 401 KiB | 5 Q