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, 0); $a->setAttribute(\NumberFormatter::MAX_FRACTION_DIGITS, 100); // 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.0090.01218.05
8.3.50.0210.01022.09
8.3.40.0090.00618.71
8.3.30.0070.00718.97
8.3.20.0040.00420.06
8.3.10.0040.00423.48
8.3.00.0100.00019.13
8.2.180.0120.00317.98
8.2.170.0120.00322.96
8.2.160.0030.01020.57
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0060.00926.16
8.2.120.0070.00022.24
8.2.110.0040.00421.11
8.2.100.0090.00317.84
8.2.90.0080.00018.93
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0090.00017.80
8.2.50.0080.00018.10
8.2.40.0040.00418.09
8.2.30.0000.00717.93
8.2.20.0040.00417.47
8.2.10.0000.00717.79
8.2.00.0040.00417.46
8.1.280.0170.00325.92
8.1.270.0190.00021.88
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0110.00021.13
8.1.230.0040.00717.58
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0040.00420.16
8.1.160.0070.00021.97
8.1.150.0000.00818.75
8.1.140.0000.00717.26
8.1.130.0030.00317.74
8.1.120.0000.00717.36
8.1.110.0000.00817.32
8.1.100.0040.00317.22
8.1.90.0040.00417.29
8.1.80.0050.00217.20
8.1.70.0050.00217.13
8.1.60.0030.00617.39
8.1.50.0000.00817.27
8.1.40.0000.00717.21
8.1.30.0080.00017.41
8.1.20.0070.00017.33
8.1.10.0000.00817.45
8.1.00.0070.00017.29
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0070.00018.28
8.0.270.0000.00717.23
8.0.260.0060.00017.17
8.0.250.0030.00316.70
8.0.240.0030.00516.86
8.0.230.0070.00016.75
8.0.220.0000.00716.76
8.0.210.0030.00316.68
8.0.200.0030.00316.80
8.0.190.0030.00316.80
8.0.180.0040.00416.77
8.0.170.0070.00016.79
8.0.160.0030.00316.64
8.0.150.0040.00416.82
8.0.140.0050.00316.68
8.0.130.0060.00013.26
8.0.120.0000.00816.68
8.0.110.0000.00816.66
8.0.100.0040.00416.59
8.0.90.0040.00416.66
8.0.80.0090.00916.73
8.0.70.0000.00716.74
8.0.60.0000.00716.79
8.0.50.0040.00416.63
8.0.30.0100.01216.92
8.0.20.0140.00817.40
8.0.10.0000.00716.68
8.0.00.0100.00716.76
7.4.330.0030.00315.02
7.4.320.0030.00316.27
7.4.300.0030.00316.28
7.4.290.0030.00316.46
7.4.280.0000.00816.47
7.4.270.0030.00616.27
7.4.260.0070.00016.34
7.4.250.0050.00216.42
7.4.240.0040.00416.32
7.4.230.0070.00016.25
7.4.220.0060.01216.48
7.4.210.0140.00016.40
7.4.200.0040.00416.56
7.4.160.0030.01416.65
7.4.150.0200.00617.40
7.4.140.0140.00817.86
7.4.130.0100.01016.38
7.4.120.0050.01116.40
7.4.110.0130.01016.31
7.4.100.0070.01016.34
7.4.90.0090.00916.39
7.4.80.0100.00719.39
7.4.70.0100.00716.38
7.4.60.0100.00616.41
7.4.50.0060.00016.19
7.4.40.0140.00316.57
7.4.30.0110.01016.37
7.4.00.0040.00714.66
7.3.330.0080.00013.07
7.3.320.0030.00313.16
7.3.310.0030.00315.92
7.3.300.0040.00416.04
7.3.290.0080.00716.16
7.3.280.0100.00616.10
7.3.270.0180.00617.40
7.3.260.0110.00616.07
7.3.250.0090.00816.37
7.3.240.0110.01116.39
7.3.230.0130.00616.39
7.3.210.0080.00816.39
7.3.200.0070.01419.39
7.3.190.0060.01316.57
7.3.180.0070.01016.14
7.3.170.0210.01516.27
7.3.160.0100.01316.38
7.2.330.0110.01116.23
7.2.320.0100.00716.55
7.2.310.0100.00716.61
7.2.300.0030.01316.55
7.2.290.0190.00316.56
7.2.60.0070.00718.38
7.2.00.0080.00821.59
7.1.200.0080.00617.38
7.1.100.0030.00919.91
7.1.70.0070.00019.29
7.1.60.0070.01819.32
7.1.50.0030.02019.05
7.1.00.0100.07024.49
7.0.200.0040.00418.92
7.0.140.0030.07323.88
7.0.60.0130.08021.89
7.0.50.0100.04717.66
7.0.40.0030.05721.54
7.0.30.0400.04321.79
7.0.20.0130.07721.80
7.0.10.0070.08721.59
7.0.00.0000.09321.88
5.6.280.0170.06022.54
5.6.210.0030.05022.47
5.6.200.0130.05318.17
5.6.190.0030.05322.20
5.6.180.0130.07322.12
5.6.170.0370.06722.14
5.6.160.0070.08322.23
5.6.150.0100.07718.17
5.6.140.0030.05018.12
5.6.130.0130.05318.07
5.6.120.0030.08322.72
5.6.110.0030.08322.95
5.6.100.0030.06022.96
5.6.90.0130.05022.63
5.6.80.0030.08722.10
5.6.70.4470.04022.22
5.5.350.0200.04322.27
5.5.340.0000.06017.98
5.5.330.0130.04021.77
5.5.320.0300.04321.80
5.5.310.0230.07721.80
5.5.300.0030.06318.02
5.5.290.0170.07017.87
5.5.280.0100.08322.78
5.5.270.0030.05022.29
5.5.260.0070.06022.57
5.5.250.0100.07722.44
5.5.240.0200.06321.88
5.4.450.0630.06321.16
5.4.440.0130.06321.22
5.4.430.0770.04721.27
5.4.420.0600.05020.83
5.4.410.0100.08021.16
5.4.400.0230.04720.61
5.4.390.0470.07020.50
5.4.380.0700.05720.49
5.4.370.0730.06321.06
5.4.360.0670.06721.05
5.4.350.0700.06320.96
5.4.340.0050.03611.97
5.4.320.0050.03812.45
5.4.310.0090.03512.45
5.4.300.0060.03612.45
5.4.290.0060.03912.45
5.4.280.0060.03512.35
5.4.270.0030.03912.34
5.4.260.0070.03612.34
5.4.250.0050.03812.34
5.4.240.0060.03712.35
5.4.230.0040.04112.34
5.4.220.0070.03612.34
5.4.210.0080.03412.34
5.4.200.0050.03912.34
5.4.190.0070.03412.33
5.4.180.0040.03712.34
5.4.170.0070.04112.34
5.4.160.0040.03812.34
5.4.150.0040.03812.34
5.4.140.0040.03812.02
5.4.130.0050.03612.01
5.4.120.0040.03711.96
5.4.110.0060.03511.96
5.4.100.0060.03911.96
5.4.90.0060.03811.96
5.4.80.0040.03811.96
5.4.70.0060.03511.96
5.4.60.0020.03911.96
5.4.50.0040.03711.96
5.4.40.0050.03611.95
5.4.30.0060.03611.95
5.4.20.0060.03511.95
5.4.10.0050.03611.95
5.4.00.0070.03811.43
5.3.290.0060.04312.80
5.3.280.0050.04212.71
5.3.270.0050.04012.73
5.3.260.0050.04012.72
5.3.250.0070.03712.72
5.3.240.0070.04212.72
5.3.230.0090.03512.71
5.3.220.0050.03712.68
5.3.210.0070.04312.68
5.3.200.0090.04212.68
5.3.190.0080.04612.68
5.3.180.0040.04112.67
5.3.170.0050.03712.67
5.3.160.0070.04312.67
5.3.150.0070.04012.68
5.3.140.0060.03912.66
5.3.130.0110.03812.66
5.3.120.0060.04412.66
5.3.110.0100.03512.66
5.3.100.0050.03812.12
5.3.90.0040.03812.08
5.3.80.0070.03612.08
5.3.70.0070.03512.08
5.3.60.0080.03512.06
5.3.50.0060.03812.00
5.3.40.0040.03912.00
5.3.30.0080.03311.94
5.3.20.0030.03911.72
5.3.10.0050.03511.69
5.3.00.0050.03711.67
5.2.170.0060.0299.17
5.2.160.0040.0299.17
5.2.150.0030.0339.17
5.2.140.0050.0399.17
5.2.130.0100.0369.13
5.2.120.0050.0349.13
5.2.110.0070.0299.14
5.2.100.0050.0319.13
5.2.90.0050.0319.13
5.2.80.0060.0289.13
5.2.70.0060.0309.13
5.2.60.0060.0299.08
5.2.50.0060.0339.05
5.2.40.0040.0299.03
5.2.30.0040.0329.00
5.2.20.0040.0308.99
5.2.10.0060.0268.92
5.2.00.0040.0318.77
5.1.60.0060.0238.06
5.1.50.0050.0248.05
5.1.40.0030.0268.04
5.1.30.0030.0278.39
5.1.20.0030.0288.41
5.1.10.0040.0268.13
5.1.00.0050.0258.13
5.0.50.0040.0206.61
5.0.40.0020.0216.47
5.0.30.0030.0326.29
5.0.20.0060.0176.25
5.0.10.0040.0206.23
5.0.00.0070.0286.23
4.4.90.0030.0154.78
4.4.80.0010.0184.75
4.4.70.0030.0164.75
4.4.60.0020.0164.76
4.4.50.0030.0154.77
4.4.40.0030.0264.71
4.4.30.0030.0174.76
4.4.20.0010.0184.84
4.4.10.0020.0174.85
4.4.00.0040.0274.76
4.3.110.0030.0174.67
4.3.100.0030.0154.66
4.3.90.0070.0114.64
4.3.80.0020.0254.59
4.3.70.0050.0124.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0020.0264.54
4.3.30.0030.0213.27
4.3.20.0020.0163.25
4.3.10.0000.0193.21
4.3.00.0070.0207.00

preferences:
42.85 ms | 401 KiB | 5 Q