3v4l.org

run code in 300+ PHP versions simultaneously
<? $a = new \NumberFormatter("it-IT", \NumberFormatter::DECIMAL); echo $a->format(10) . "<br>"; // outputs 12.345,12 $a->setAttribute(\NumberFormatter::MIN_FRACTION_DIGITS, 1000); $a->setAttribute(\NumberFormatter::MAX_FRACTION_DIGITS, 1000); // by default some locales got max 2 fraction digits, that is probably not what you want echo $a->format(10) . "<br>"; // outputs 12.345,12345

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.0100.01018.30
8.3.50.0180.00720.97
8.3.40.0170.00018.59
8.3.30.0070.01119.00
8.3.20.0080.00020.03
8.3.10.0040.00423.70
8.3.00.0050.00319.26
8.2.180.0110.00416.32
8.2.170.0120.00322.96
8.2.160.0030.01020.36
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00022.27
8.2.110.0100.00019.30
8.2.100.0000.01117.60
8.2.90.0040.00419.21
8.2.80.0090.00017.97
8.2.70.0090.00017.50
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0060.00318.03
8.2.30.0080.00017.80
8.2.20.0070.00017.65
8.2.10.0040.00417.97
8.2.00.0050.00317.45
8.1.280.0100.01025.92
8.1.270.0070.00323.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00022.06
8.1.230.0060.00617.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.22
8.1.190.0000.00817.00
8.1.180.0000.00718.10
8.1.170.0000.00818.72
8.1.160.0040.00421.99
8.1.150.0040.00418.78
8.1.140.0000.00717.31
8.1.130.0040.00417.66
8.1.120.0000.00717.35
8.1.110.0040.00417.30
8.1.100.0070.00017.33
8.1.90.0030.00517.32
8.1.80.0030.00417.31
8.1.70.0040.00417.19
8.1.60.0080.00017.50
8.1.50.0040.00417.36
8.1.40.0040.00417.38
8.1.30.0030.00517.41
8.1.20.0070.00017.50
8.1.10.0080.00017.37
8.1.00.0020.00517.34
8.0.300.0000.00818.77
8.0.290.0000.00716.58
8.0.280.0000.00718.24
8.0.270.0000.00717.29
8.0.260.0000.00617.09
8.0.250.0000.00716.72
8.0.240.0030.00316.86
8.0.230.0050.00216.82
8.0.220.0030.00316.74
8.0.210.0040.00416.80
8.0.200.0000.00716.68
8.0.190.0040.00416.85
8.0.180.0070.00016.70
8.0.170.0040.00416.79
8.0.160.0070.00016.80
8.0.150.0000.00716.76
8.0.140.0000.00716.76
8.0.130.0000.00613.29
8.0.120.0080.00016.62
8.0.110.0040.00416.85
8.0.100.0000.00716.80
8.0.90.0050.00216.74
8.0.80.0000.01516.69
8.0.70.0040.00416.64
8.0.60.0040.00416.77
8.0.50.0000.00816.55
8.0.30.0060.01316.85
8.0.20.0150.01317.40
8.0.10.0070.00016.90
8.0.00.0120.00616.54
7.4.330.0030.00315.02
7.4.320.0060.00016.51
7.4.300.0060.00016.43
7.4.290.0030.00316.38
7.4.280.0070.00016.37
7.4.270.0030.00316.36
7.4.260.0040.00716.34
7.4.250.0000.00716.25
7.4.240.0020.00516.37
7.4.230.0040.00416.39
7.4.220.0080.01516.38
7.4.210.0070.01416.48
7.4.200.0040.00416.53
7.4.160.0080.00816.21
7.4.150.0130.00717.40
7.4.140.0100.00817.86
7.4.130.0070.01016.30
7.4.120.0080.00916.46
7.4.110.0100.01316.23
7.4.100.0080.00816.44
7.4.90.0120.01216.21
7.4.80.0110.01419.39
7.4.70.0110.00816.36
7.4.60.0040.01116.29
7.4.50.0080.00016.50
7.4.40.0120.00616.17
7.4.30.0030.01316.51
7.4.00.0100.00015.09
7.3.330.0050.00213.02
7.3.320.0050.00013.11
7.3.310.0030.00316.09
7.3.300.0070.00016.15
7.3.290.0090.00716.13
7.3.280.0090.00916.13
7.3.270.0160.00917.40
7.3.260.0030.01416.29
7.3.250.0100.00716.17
7.3.240.0150.00616.23
7.3.230.0090.00916.39
7.3.210.0190.00016.39
7.3.200.0090.00619.39
7.3.190.0150.00616.47
7.3.180.0080.00916.39
7.3.170.0040.01216.35
7.3.160.0160.00616.50
7.2.330.0030.01316.42
7.2.320.0130.00316.45
7.2.310.0070.01116.54
7.2.300.0000.01716.61
7.2.290.0130.01016.51
7.2.60.0080.00418.82
7.2.00.0070.01021.68
7.1.200.0060.00917.60
7.1.100.0090.00620.02
7.1.70.0070.00719.29
7.1.60.0090.01219.48
7.1.50.0030.01919.12
7.1.00.0070.07324.42
7.0.200.0070.00318.82
7.0.140.0030.07324.06
7.0.60.0070.05321.82
7.0.50.0070.08317.66
7.0.40.0070.09021.89
7.0.30.0200.04021.63
7.0.20.0130.04321.77
7.0.10.0030.04721.73
7.0.00.0030.04721.77
5.6.280.0030.07322.82
5.6.210.0030.08722.41
5.6.200.0070.08018.15
5.6.190.0030.05722.31
5.6.180.0230.08322.23
5.6.170.0400.06322.17
5.6.160.0130.07722.13
5.6.150.0030.05018.18
5.6.140.0030.06018.21
5.6.130.0000.05718.18
5.6.120.0100.08022.73
5.6.110.0070.08322.99
5.6.100.0070.08322.84
5.6.90.0030.08722.93
5.6.80.0000.08722.02
5.6.70.4700.03021.99
5.5.350.0100.05022.22
5.5.340.0030.08717.91
5.5.330.0100.05322.00
5.5.320.0200.04321.77
5.5.310.0200.04021.92
5.5.300.0100.04717.93
5.5.290.0100.07717.91
5.5.280.0000.05322.23
5.5.270.0100.07322.26
5.5.260.0270.06722.61
5.5.250.0130.04722.38
5.5.240.0270.07322.16
5.4.450.0630.06720.82
5.4.440.0770.05721.21
5.4.430.0700.07321.19
5.4.420.0170.05321.34
5.4.410.0830.05321.06
5.4.400.0670.06020.92
5.4.390.0770.05020.45
5.4.380.0570.05720.50
5.4.370.0730.06020.86
5.4.360.0100.06321.02
5.4.350.0270.04320.50
5.4.340.0040.03611.97
5.4.320.0050.03712.45
5.4.310.0060.03812.45
5.4.300.0030.04012.45
5.4.290.0070.04212.45
5.4.280.0080.03412.35
5.4.270.0050.04312.34
5.4.260.0070.03812.34
5.4.250.0070.04512.34
5.4.240.0110.03412.35
5.4.230.0070.03712.34
5.4.220.0080.03512.34
5.4.210.0100.03412.34
5.4.200.0100.03612.34
5.4.190.0090.04612.33
5.4.180.0080.03512.33
5.4.170.0080.03612.35
5.4.160.0070.03512.34
5.4.150.0080.03512.34
5.4.140.0060.03712.02
5.4.130.0060.03512.01
5.4.120.0060.03611.96
5.4.110.0050.03611.96
5.4.100.0070.03511.96
5.4.90.0050.03911.96
5.4.80.0050.03711.96
5.4.70.0060.03411.96
5.4.60.0070.03311.96
5.4.50.0040.03711.96
5.4.40.0100.03211.95
5.4.30.0040.04111.95
5.4.20.0030.03811.95
5.4.10.0090.03211.95
5.4.00.0030.03911.44
5.3.290.0100.03812.80
5.3.280.0030.04112.71
5.3.270.0070.04112.72
5.3.260.0080.03712.71
5.3.250.0090.03512.72
5.3.240.0070.03912.72
5.3.230.0090.03712.71
5.3.220.0060.04212.68
5.3.210.0020.04812.68
5.3.200.0090.04012.68
5.3.190.0060.04512.68
5.3.180.0050.03912.67
5.3.170.0040.03812.66
5.3.160.0040.03912.67
5.3.150.0050.03912.67
5.3.140.0050.03912.66
5.3.130.0050.04112.66
5.3.120.0070.04312.66
5.3.110.0110.03712.66
5.3.100.0090.03712.12
5.3.90.0090.04512.09
5.3.80.0080.05512.07
5.3.70.0080.04912.07
5.3.60.0090.04812.07
5.3.50.0070.04712.00
5.3.40.0080.03912.00
5.3.30.0060.03711.94
5.3.20.0080.03911.72
5.3.10.0100.03311.69
5.3.00.0080.04211.67
5.2.170.0050.0349.17
5.2.160.0040.0319.17
5.2.150.0060.0299.17
5.2.140.0040.0329.17
5.2.130.0060.0289.13
5.2.120.0050.0359.13
5.2.110.0030.0329.14
5.2.100.0050.0309.13
5.2.90.0060.0279.13
5.2.80.0050.0349.13
5.2.70.0120.0299.13
5.2.60.0070.0349.08
5.2.50.0040.0369.05
5.2.40.0100.0339.03
5.2.30.0040.0329.01
5.2.20.0050.0368.99
5.2.10.0060.0378.91
5.2.00.0050.0398.78
5.1.60.0040.0318.05
5.1.50.0030.0278.05
5.1.40.0040.0248.04
5.1.30.0020.0288.39
5.1.20.0030.0288.41
5.1.10.0030.0278.13
5.1.00.0030.0288.13
5.0.50.0050.0216.61
5.0.40.0030.0206.47
5.0.30.0020.0336.28
5.0.20.0040.0196.25
5.0.10.0030.0206.23
5.0.00.0020.0326.22
4.4.90.0010.0174.78
4.4.80.0030.0144.76
4.4.70.0020.0164.75
4.4.60.0030.0154.75
4.4.50.0040.0144.77
4.4.40.0020.0264.71
4.4.30.0050.0144.76
4.4.20.0020.0184.84
4.4.10.0030.0174.85
4.4.00.0010.0264.75
4.3.110.0020.0164.66
4.3.100.0020.0164.66
4.3.90.0050.0124.63
4.3.80.0030.0234.58
4.3.70.0040.0134.63
4.3.60.0040.0164.63
4.3.50.0050.0134.63
4.3.40.0010.0264.54
4.3.30.0010.0173.28
4.3.20.0020.0163.25
4.3.10.0020.0153.22
4.3.00.0200.0176.99

preferences:
47.06 ms | 401 KiB | 5 Q