3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new NumberFormatter("it-IT", NumberFormatter::DECIMAL); echo $a->format(12345.12345) . "<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.0120.00620.43
8.3.50.0070.01018.61
8.3.40.0000.01520.34
8.3.30.0090.00620.71
8.3.20.0000.00821.72
8.3.10.0060.00323.77
8.3.00.0040.00424.31
8.2.180.0040.01418.38
8.2.170.0090.00622.96
8.2.160.0100.00720.41
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0110.00426.16
8.2.120.0130.00620.73
8.2.110.0150.00323.63
8.2.100.0060.00621.32
8.2.90.0000.00820.59
8.2.80.0040.00419.78
8.2.70.0030.00619.25
8.2.60.0060.01119.67
8.2.50.0070.01119.38
8.2.40.0030.00621.75
8.2.30.0030.00519.72
8.2.20.0050.00319.61
8.2.10.0040.00419.34
8.2.00.0040.00419.38
8.1.280.0180.00425.92
8.1.270.0000.00823.62
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00325.40
8.1.230.0030.00720.91
8.1.220.0000.00819.51
8.1.210.0050.00319.10
8.1.200.0000.01018.98
8.1.190.0000.00819.15
8.1.180.0050.00320.13
8.1.170.0100.00020.38
8.1.160.0020.00523.43
8.1.150.0040.00420.11
8.1.140.0040.00419.26
8.1.130.0080.00019.61
8.1.120.0040.00419.39
8.1.110.0000.00819.16
8.1.100.0030.00519.19
8.1.90.0000.00719.34
8.1.80.0040.00419.22
8.1.70.0030.00319.31
8.1.60.0060.00619.44
8.1.50.0060.00319.33
8.1.40.0040.00419.45
8.1.30.0000.00919.57
8.1.20.0050.00319.43
8.1.10.0050.00319.53
8.1.00.0040.00419.39
8.0.300.0000.00719.22
8.0.290.0040.00418.93
8.0.280.0070.00019.96
8.0.270.0040.00419.02
8.0.260.0030.00318.46
8.0.250.0070.00018.65
8.0.240.0030.00518.65
8.0.230.0070.00018.68
8.0.220.0000.00718.60
8.0.210.0030.00318.71
8.0.200.0070.00018.70
8.0.190.0000.00818.70
8.0.180.0000.00818.61
8.0.170.0040.00418.68
8.0.160.0040.00418.53
8.0.150.0040.00418.57
8.0.140.0040.00418.58
8.0.130.0000.00613.33
8.0.120.0060.00318.73
8.0.110.0030.00518.72
8.0.100.0050.00318.66
8.0.90.0000.00818.50
8.0.80.0140.00318.66
8.0.70.0080.00018.54
8.0.60.0040.00418.78
8.0.50.0080.00018.70
8.0.30.0150.00418.93
8.0.20.0130.01318.88
8.0.10.0040.00418.91
8.0.00.0160.00718.68
7.4.330.0050.00015.00
7.4.320.0040.00418.30
7.4.300.0070.00018.58
7.4.290.0000.00718.40
7.4.280.0000.00718.43
7.4.270.0000.00718.59
7.4.260.0040.00418.47
7.4.250.0000.00818.48
7.4.240.0020.00618.57
7.4.230.0030.00318.44
7.4.220.0060.01218.64
7.4.210.0070.00718.45
7.4.200.0030.00618.50
7.4.190.0000.00718.51
7.4.160.0110.01118.28
7.4.150.0090.00918.48
7.4.140.0120.00818.43
7.4.130.0130.00618.33
7.4.120.0100.00918.39
7.4.110.0040.01518.52
7.4.100.0090.00918.23
7.4.90.0110.00718.21
7.4.80.0070.01019.39
7.4.70.0100.01018.25
7.4.60.0090.00618.35
7.4.50.0000.00818.30
7.4.40.0000.01222.77
7.4.30.0130.00418.29
7.4.00.0060.00917.03
7.3.330.0000.00513.11
7.3.320.0000.00513.16
7.3.310.0040.00418.14
7.3.300.0030.00318.11
7.3.290.0030.01018.09
7.3.280.0120.00818.11
7.3.270.0100.00718.05
7.3.260.0060.01218.11
7.3.250.0100.01518.27
7.3.240.0110.00518.28
7.3.230.0040.01418.00
7.3.210.0050.01618.29
7.3.200.0100.01319.39
7.3.190.0150.00718.39
7.3.180.0040.01218.04
7.3.170.0100.00718.48
7.3.160.0100.00718.27
7.3.120.0040.01116.63
7.2.330.0090.00918.05
7.2.320.0030.01818.73
7.2.310.0090.00918.68
7.2.300.0090.00918.27
7.2.290.0060.01017.91
7.2.60.0110.01118.43
7.2.00.0120.00821.36
7.1.200.0070.00717.57
7.1.100.0110.00620.25
7.1.70.0000.01419.21
7.1.60.0120.01219.82
7.1.50.0110.01418.91
7.1.00.0070.05324.42
7.0.200.0000.00718.60
7.0.140.0000.07723.97
7.0.60.0130.07321.75
7.0.50.0070.06317.80
7.0.40.0100.07721.78
7.0.30.0230.04321.59
7.0.20.0230.05321.56
7.0.10.0030.06021.59
7.0.00.0070.07021.84
5.6.280.0100.07022.84
5.6.210.0070.08022.41
5.6.200.0130.07318.06
5.6.190.0070.09022.26
5.6.180.0200.05022.30
5.6.170.0330.07322.21
5.6.160.0100.08722.27
5.6.150.0130.04318.11
5.6.140.0170.05318.18
5.6.130.0030.05018.22
5.6.120.0070.07722.63
5.6.110.0130.07722.99
5.6.100.0100.07322.95
5.6.90.0130.06322.60
5.6.80.0170.05022.10
5.6.70.4570.03322.01
5.5.350.0170.08722.26
5.5.340.0070.04717.91
5.5.330.0030.08322.01
5.5.320.0270.04722.16
5.5.310.0270.07021.68
5.5.300.0100.03717.95
5.5.290.0100.08018.02
5.5.280.0070.05722.27
5.5.270.0070.08722.32
5.5.260.0070.07322.52
5.5.250.0130.08722.31
5.5.240.0230.07321.93
5.4.450.0800.06321.36
5.4.440.0070.06020.88
5.4.430.0070.06021.16
5.4.420.0130.06020.94
5.4.410.0170.06720.41
5.4.400.0170.05020.34
5.4.390.0170.04720.45
5.4.380.0070.05720.37
5.4.370.0100.05720.27
5.4.360.0100.05320.45
5.4.350.0200.04720.20
5.4.340.0070.06020.24
5.4.320.0070.03812.46
5.4.310.0040.03912.45
5.4.300.0060.04212.45
5.4.290.0050.05112.45
5.4.280.0080.03212.35
5.4.270.0040.03712.35
5.4.260.0130.04320.33
5.4.250.0070.05720.44
5.4.240.0100.05020.48
5.4.230.0030.05720.33
5.4.220.0030.05720.36
5.4.210.0130.04720.51
5.4.200.0070.05020.67
5.4.190.0100.05720.41
5.4.180.0130.05020.59
5.4.170.0030.05320.84
5.4.160.0200.06320.54
5.4.150.0030.06020.29
5.4.140.0070.05018.38
5.4.130.0070.05018.24
5.4.120.0200.05718.28
5.4.110.0070.05018.20
5.4.100.0030.05018.46
5.4.90.0100.04318.11
5.4.80.0100.04718.09
5.4.70.0100.05318.09
5.4.60.0070.04718.10
5.4.50.0030.05018.09
5.4.40.0070.07018.21
5.4.30.0170.04318.07
5.4.20.0070.07318.43
5.4.10.0130.06718.22
5.4.00.0200.04317.65
5.3.290.0100.04012.80
5.3.280.0230.05714.46
5.3.270.0070.05314.46
5.3.260.0230.06014.60
5.3.250.0130.04714.30
5.3.240.0100.04714.62
5.3.230.0070.05014.69
5.3.220.0130.04714.45
5.3.210.0100.05014.27
5.3.200.0070.07014.41
5.3.190.0130.04314.58
5.3.180.0030.07714.66
5.3.170.0000.06714.66
5.3.160.0000.07014.44
5.3.150.0100.07314.46
5.3.140.0070.07314.56
5.3.130.0070.06014.59
5.3.120.0070.05714.38
5.3.110.0070.05314.24
5.3.100.0130.06713.89
5.3.90.0100.04313.90
5.3.80.0100.05013.79
5.3.70.0070.06013.87
5.3.60.0170.04013.77
5.3.50.0000.06314.09
5.3.40.0100.04714.04
5.3.30.0030.05713.79
5.3.20.0130.05313.52
5.3.10.0130.05313.49
5.3.00.0100.04313.47
5.2.170.0030.04311.29
5.2.160.0070.05711.14
5.2.150.0100.03711.05
5.2.140.0100.04011.14
5.2.130.0030.04711.19
5.2.120.0100.03311.11
5.2.110.0130.04711.25
5.2.100.0130.04310.86
5.2.90.0000.04311.10
5.2.80.0100.03710.97
5.2.70.0130.03311.18
5.2.60.0130.04010.95
5.2.50.0000.04711.05
5.2.40.0070.04011.08
5.2.30.0070.04711.12
5.2.20.0030.04010.97
5.2.10.0070.03710.76
5.2.00.0130.04010.89
5.1.60.0100.05010.23
5.1.50.0070.0339.84
5.1.40.0070.03710.06
5.1.30.0070.03710.34
5.1.20.0070.03710.33
5.1.10.0070.03310.10
5.1.00.0130.04710.13
5.0.50.0030.0338.60
5.0.40.0000.0308.44
5.0.30.0070.0408.25
5.0.20.0070.0308.18
5.0.10.0100.0278.20
5.0.00.0000.0608.07
4.4.90.0000.0237.36
4.4.80.0030.0237.36
4.4.70.0070.0177.36
4.4.60.0000.0237.36
4.4.50.0000.0237.36
4.4.40.0000.0507.36
4.4.30.0070.0207.36
4.4.20.0000.0237.36
4.4.10.0000.0237.36
4.4.00.0030.0337.36
4.3.110.0000.0237.36
4.3.100.0030.0207.36
4.3.90.0000.0237.36
4.3.80.0070.0407.36
4.3.70.0070.0177.36
4.3.60.0070.0237.36
4.3.50.0000.0337.36
4.3.40.0100.0237.36
4.3.30.0000.0207.36
4.3.20.0070.0177.36
4.3.10.0100.0137.36
4.3.00.0070.0236.76

preferences:
51.81 ms | 400 KiB | 5 Q