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(12345.12345) . "<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.30
8.3.50.0140.00722.09
8.3.40.0090.00618.70
8.3.30.0140.00319.00
8.3.20.0070.00019.96
8.3.10.0000.00823.66
8.3.00.0080.00019.38
8.2.180.0090.00618.16
8.2.170.0040.01122.96
8.2.160.0100.00320.41
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0000.00722.04
8.2.110.0030.00722.29
8.2.100.0000.01117.50
8.2.90.0040.00419.03
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0000.00817.68
8.2.50.0040.00418.07
8.2.40.0000.00718.22
8.2.30.0080.00017.84
8.2.20.0080.00017.59
8.2.10.0040.00417.80
8.2.00.0090.00017.59
8.1.280.0130.00725.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00423.91
8.1.230.0070.00319.09
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.11
8.1.190.0030.00617.10
8.1.180.0050.00218.10
8.1.170.0050.00320.17
8.1.160.0000.00721.93
8.1.150.0040.00418.79
8.1.140.0000.00717.31
8.1.130.0030.00317.66
8.1.120.0000.00817.18
8.1.110.0040.00417.24
8.1.100.0030.00317.24
8.1.90.0070.00017.32
8.1.80.0030.00317.28
8.1.70.0040.00417.23
8.1.60.0090.00017.27
8.1.50.0080.00017.34
8.1.40.0030.00617.38
8.1.30.0040.00417.46
8.1.20.0000.00717.57
8.1.10.0050.00317.42
8.1.00.0000.00717.28
8.0.300.0050.00218.77
8.0.290.0000.00716.75
8.0.280.0000.00718.29
8.0.270.0080.00017.05
8.0.260.0050.00317.19
8.0.250.0040.00416.78
8.0.240.0000.00616.73
8.0.230.0000.00716.69
8.0.220.0000.00716.65
8.0.210.0030.00316.66
8.0.200.0000.00716.72
8.0.190.0030.00316.85
8.0.180.0070.00016.65
8.0.170.0060.00316.77
8.0.160.0000.00816.78
8.0.150.0040.00416.59
8.0.140.0030.00316.69
8.0.130.0030.00313.37
8.0.120.0030.00616.60
8.0.110.0000.00716.66
8.0.100.0060.00316.60
8.0.90.0070.00016.61
8.0.80.0060.00916.65
8.0.70.0000.00716.82
8.0.60.0040.00416.71
8.0.50.0000.00816.63
8.0.30.0140.00717.10
8.0.20.0100.01117.40
8.0.10.0000.00816.77
8.0.00.0130.00316.55
7.4.330.0000.00915.02
7.4.320.0030.00316.44
7.4.300.0060.00016.48
7.4.290.0020.00516.46
7.4.280.0030.00516.34
7.4.270.0030.00316.48
7.4.260.0060.00316.44
7.4.250.0040.00416.34
7.4.240.0030.00316.44
7.4.230.0030.00316.44
7.4.220.0090.00916.31
7.4.210.0100.00716.38
7.4.200.0070.00016.44
7.4.160.0060.00916.67
7.4.150.0120.00917.40
7.4.140.0060.01817.86
7.4.130.0130.00416.18
7.4.120.0110.00616.49
7.4.110.0060.01216.32
7.4.100.0060.01016.38
7.4.90.0160.00816.56
7.4.80.0090.00919.39
7.4.70.0150.00616.39
7.4.60.0090.00616.56
7.4.50.0050.00316.47
7.4.40.0070.01016.34
7.4.30.0140.00716.23
7.4.00.0080.00714.60
7.3.330.0040.00413.12
7.3.320.0000.00513.00
7.3.310.0000.00716.18
7.3.300.0050.00216.15
7.3.290.0060.00816.10
7.3.280.0080.00816.13
7.3.270.0130.00617.40
7.3.260.0130.00316.10
7.3.250.0150.00516.50
7.3.240.0060.01716.33
7.3.230.0120.01016.51
7.3.210.0030.01316.19
7.3.200.0110.00719.39
7.3.190.0080.00816.22
7.3.180.0100.00716.20
7.3.170.0120.00416.27
7.3.160.0140.00816.16
7.3.120.0110.00314.50
7.3.110.0130.00314.45
7.3.100.0060.00914.71
7.3.90.0000.00914.38
7.3.80.0030.01814.78
7.3.70.0030.01014.72
7.3.60.0060.00314.74
7.3.50.0040.00814.36
7.3.40.0030.01214.73
7.3.30.0060.00614.59
7.3.20.0000.01216.50
7.3.10.0050.01017.38
7.3.00.0080.00517.29
7.2.330.0090.00916.25
7.2.320.0110.00516.42
7.2.310.0120.00616.41
7.2.300.0060.00916.41
7.2.290.0100.01316.59
7.2.250.0030.01315.02
7.2.240.0040.01514.82
7.2.230.0060.00914.66
7.2.220.0070.00714.76
7.2.210.0060.00614.75
7.2.200.0000.01414.75
7.2.190.0080.00814.89
7.2.180.0070.01014.93
7.2.170.0070.00714.55
7.2.130.0060.00318.51
7.2.120.0070.00718.32
7.2.110.0040.01218.46
7.2.100.0040.01118.45
7.2.90.0030.01318.27
7.2.80.0080.00318.45
7.2.70.0000.01318.88
7.2.60.0060.00718.69
7.2.50.0030.00918.66
7.2.40.0060.01218.26
7.2.30.0110.00018.23
7.2.20.0070.01118.43
7.2.10.0070.00418.58
7.2.00.0060.00920.08
7.1.330.0080.00615.66
7.1.320.0030.01015.58
7.1.310.0030.01715.77
7.1.300.0000.01715.44
7.1.290.0000.01715.61
7.1.280.0040.00815.43
7.1.270.0070.00715.55
7.1.260.0000.01115.46
7.1.250.0030.01217.73
7.1.240.0050.00317.63
7.1.230.0040.01117.52
7.1.220.0040.00817.39
7.1.210.0060.00617.39
7.1.200.0020.01117.53
7.1.190.0100.00317.54
7.1.180.0090.00317.52
7.1.170.0030.01017.66
7.1.160.0100.00317.31
7.1.150.0080.00317.76
7.1.140.0030.01217.65
7.1.130.0000.01617.45
7.1.120.0100.00317.40
7.1.110.0000.00917.45
7.1.100.0060.01018.87
7.1.90.0000.00817.59
7.1.80.0090.00617.25
7.1.70.0050.00518.39
7.1.60.0030.01518.54
7.1.50.0070.01418.28
7.1.40.0060.00617.18
7.1.30.0100.00317.42
7.1.20.0060.00317.51
7.1.10.0090.00617.63
7.1.00.0040.04420.93
7.0.330.0090.00317.38
7.0.320.0040.01117.34
7.0.310.0000.01317.33
7.0.300.0000.01217.19
7.0.290.0040.00817.02
7.0.280.0090.00317.00
7.0.270.0040.01117.11
7.0.260.0140.00017.45
7.0.250.0100.00717.43
7.0.240.0000.01517.39
7.0.230.0090.00617.42
7.0.220.0060.00917.30
7.0.210.0090.00617.12
7.0.200.0060.00618.14
7.0.190.0060.00317.25
7.0.180.0070.00717.46
7.0.170.0040.01217.27
7.0.160.0090.00617.41
7.0.150.0030.01017.40
7.0.140.0060.04120.64
7.0.130.0030.01317.24
7.0.120.0070.01017.25
7.0.110.0060.00917.25
7.0.100.0000.00917.21
7.0.90.0090.00017.27
7.0.80.0000.01017.05
7.0.70.0070.00416.98
7.0.60.0110.04019.69
7.0.50.0080.04017.35
7.0.40.0050.05018.47
7.0.30.0220.02318.41
7.0.20.0170.02818.28
7.0.10.0130.03018.56
7.0.00.0050.03218.21
5.6.380.0040.00416.14
5.6.370.0090.00316.05
5.6.360.0000.00816.34
5.6.350.0070.00716.00
5.6.340.0080.00516.20
5.6.330.0030.00716.15
5.6.320.0030.00716.10
5.6.310.0060.00916.22
5.6.300.0140.00016.21
5.6.290.0030.00616.18
5.6.280.0130.03519.40
5.6.270.0080.00415.97
5.6.260.0070.01015.81
5.6.250.0090.00915.89
5.6.240.0040.00816.11
5.6.230.0080.00416.04
5.6.220.0150.00316.12
5.6.210.0100.04019.22
5.6.200.0090.04317.06
5.6.190.0080.04319.22
5.6.180.0270.02819.03
5.6.170.0120.03019.04
5.6.160.0020.03219.25
5.6.150.0050.04917.18
5.6.140.0030.02517.14
5.6.130.0030.04517.10
5.6.120.0070.02519.52
5.6.110.0100.04519.44
5.6.100.0070.02219.37
5.6.90.0080.04519.40
5.6.80.0100.02518.96
5.6.70.1780.02719.28
5.6.60.0070.00716.02
5.6.50.0080.00415.86
5.6.40.0030.01115.96
5.6.30.0070.00715.99
5.6.20.0060.01016.07
5.6.10.0000.01616.01
5.6.00.0030.01016.14
5.5.380.0060.00310.75
5.5.370.0030.00910.83
5.5.360.0040.00810.78
5.5.350.0050.04416.30
5.5.340.0060.04214.36
5.5.330.0100.03316.43
5.5.320.0280.03616.57
5.5.310.0160.03516.33
5.5.300.0080.04214.31
5.5.290.0080.02314.40
5.5.280.0080.03916.82
5.5.270.0060.02316.77
5.5.260.0100.04016.82
5.5.250.0050.04116.65
5.5.240.0200.03316.34
5.5.230.0030.01011.00
5.5.220.0000.01010.73
5.5.210.0080.00310.84
5.5.200.0090.00010.66
5.5.190.0060.00610.81
5.5.180.0080.00010.70
5.5.170.0060.00610.81
5.5.160.0070.00410.93
5.5.150.0000.01010.71
5.5.140.0000.01110.59
5.5.130.0000.00710.55
5.5.120.0000.00710.67
5.5.110.0040.00410.66
5.5.100.0070.00310.62
5.5.90.0070.00410.68
5.5.80.0030.00910.62
5.5.70.0080.00010.50
5.5.60.0070.00410.76
5.5.50.0040.00410.45
5.5.40.0030.00610.83
5.5.30.0000.01010.44
5.5.20.0030.00610.55
5.5.10.0090.00310.99
5.5.00.0000.01010.74
5.4.450.0360.03015.78
5.4.440.0370.02715.96
5.4.430.0270.03215.89
5.4.420.0500.03515.97
5.4.410.0430.02815.97
5.4.400.0420.03215.91
5.4.390.0030.03415.78
5.4.380.0330.02815.75
5.4.370.0100.02515.50
5.4.360.0450.03215.59
5.4.350.0380.03415.92
5.4.340.0050.02111.36
5.4.330.0000.01010.80
5.4.320.0070.02111.58
5.4.310.0050.02411.52
5.4.300.0050.02211.54
5.4.290.0070.02211.53
5.4.280.0090.01911.48
5.4.270.0050.02211.47
5.4.260.0050.02211.40
5.4.250.0010.02411.58
5.4.240.0020.02111.46
5.4.230.0050.02211.34
5.4.220.0040.02311.48
5.4.210.0020.02611.54
5.4.200.0060.02211.57
5.4.190.0030.02311.38
5.4.180.0040.02211.54
5.4.170.0080.01811.54
5.4.160.0050.02111.44
5.4.150.0080.02011.58
5.4.140.0050.02111.27
5.4.130.0050.02211.38
5.4.120.0040.02211.28
5.4.110.0010.02511.33
5.4.100.0050.02211.31
5.4.90.0040.02211.31
5.4.80.0020.02411.39
5.4.70.0060.02411.28
5.4.60.0080.02511.36
5.4.50.0040.02211.24
5.4.40.0070.02011.30
5.4.30.0080.02011.37
5.4.20.0080.01811.29
5.4.10.0040.02211.36
5.4.00.0070.02011.02
5.3.290.0050.02311.58
5.3.280.0070.02011.51
5.3.270.0030.02311.53
5.3.260.0030.02211.56
5.3.250.0050.02011.45
5.3.240.0060.02111.45
5.3.230.0050.02111.51
5.3.220.0060.01911.43
5.3.210.0050.02311.43
5.3.200.0050.02211.43
5.3.190.0050.02511.45
5.3.180.0040.02311.49
5.3.170.0070.01811.50
5.3.160.0050.02611.51
5.3.150.0020.02311.46
5.3.140.0060.02211.45
5.3.130.0050.05911.45
5.3.120.0060.02711.41
5.3.110.0040.02411.42
5.3.100.0070.03211.14
5.3.90.0070.02611.13
5.3.80.0060.02411.12
5.3.70.0070.02211.13
5.3.60.0080.02311.12
5.3.50.0100.02311.09
5.3.40.0090.02611.09
5.3.30.0070.02311.06
5.3.20.0070.03510.95
5.3.10.0080.02810.93
5.3.00.0050.02910.92
5.2.170.0060.0259.67
5.2.160.0060.0349.67
5.2.150.0070.0209.67
5.2.140.0050.0249.67
5.2.130.0030.0249.65
5.2.120.0070.0219.65
5.2.110.0050.0189.65
5.2.100.0030.0179.65
5.2.90.0020.0219.65
5.2.80.0070.0169.65
5.2.70.0060.0189.65
5.2.60.0040.0179.63
5.2.50.0060.0209.61
5.2.40.0070.0219.60
5.2.30.0050.0229.59
5.2.20.0040.0229.58
5.2.10.0070.0189.54
5.2.00.0030.0259.47
5.1.60.0020.0199.11
5.1.50.0070.0169.11
5.1.40.0030.0159.10
5.1.30.0020.0189.28
5.1.20.0020.0209.29
5.1.10.0020.0179.15
5.1.00.0050.0159.15
5.0.50.0040.0118.39
5.0.40.0030.0128.32
5.0.30.0030.0178.23
5.0.20.0060.0208.21
5.0.10.0040.0128.20
5.0.00.0040.0168.20
4.4.90.0030.0097.48
4.4.80.0020.0117.46
4.4.70.0020.0107.46
4.4.60.0020.0117.46
4.4.50.0030.0117.47
4.4.40.0010.0157.44
4.4.30.0040.0097.47
4.4.20.0040.0087.51
4.4.10.0030.0107.51
4.4.00.0040.0157.47
4.3.110.0010.0137.42
4.3.100.0040.0117.42
4.3.90.0040.0107.40
4.3.80.0030.0177.38
4.3.70.0040.0127.40
4.3.60.0040.0107.40
4.3.50.0030.0137.40
4.3.40.0020.0257.35
4.3.30.0010.0116.73
4.3.20.0030.0116.71
4.3.10.0030.0116.70
4.3.00.0080.0138.58

preferences:
50.07 ms | 401 KiB | 5 Q