3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf("%6.2f",5.678); $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.0160.00920.43
8.3.50.0180.00723.00
8.3.40.0110.00420.32
8.3.30.0000.01520.54
8.3.20.0030.00521.84
8.3.10.0080.00025.16
8.3.00.0080.00022.77
8.2.180.0100.01320.41
8.2.170.0120.00922.96
8.2.160.0090.00621.72
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0090.00022.68
8.2.110.0050.00523.88
8.2.100.0080.00421.14
8.2.90.0030.00520.60
8.2.80.0060.00319.38
8.2.70.0120.00619.38
8.2.60.0100.01019.43
8.2.50.0090.00419.25
8.2.40.0000.01421.63
8.2.30.0080.00820.20
8.2.20.0090.00519.34
8.2.10.0000.00819.84
8.2.00.0060.00919.34
8.1.280.0200.00825.92
8.1.270.0030.00625.35
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00625.05
8.1.230.0170.00320.89
8.1.220.0000.00819.41
8.1.210.0040.00419.11
8.1.200.0080.00818.98
8.1.190.0090.00018.98
8.1.180.0070.00319.00
8.1.170.0100.00320.30
8.1.160.0000.01023.40
8.1.150.0040.00720.04
8.1.140.0080.00619.21
8.1.130.0080.00419.60
8.1.120.0080.00319.36
8.1.110.0040.00819.37
8.1.100.0070.00319.09
8.1.90.0050.00519.38
8.1.80.0100.00319.14
8.1.70.0080.00519.11
8.1.60.0140.00619.53
8.1.50.0040.00719.46
8.1.40.0120.00619.37
8.1.30.0050.00719.47
8.1.20.0100.00219.48
8.1.10.0080.00319.53
8.1.00.0220.00319.34
8.0.300.0040.00419.22
8.0.290.0030.00618.50
8.0.280.0090.00219.84
8.0.270.0070.00719.07
8.0.260.0090.00019.01
8.0.250.0000.00818.65
8.0.240.0000.01118.73
8.0.230.0050.00518.72
8.0.220.0030.00618.63
8.0.210.0030.00618.52
8.0.200.0050.00518.85
8.0.190.0070.00718.73
8.0.180.0140.00318.85
8.0.170.0040.00418.66
8.0.160.0070.00718.64
8.0.150.0150.00618.48
8.0.140.0190.00318.51
8.0.130.0030.00313.29
8.0.120.0000.00818.87
8.0.110.0000.00818.66
8.0.100.0080.00018.76
8.0.90.0040.00418.70
8.0.80.0120.01218.49
8.0.70.0000.00918.88
8.0.60.0000.00818.64
8.0.50.0050.00318.59
8.0.30.0100.01218.92
8.0.20.0160.00818.73
8.0.10.0000.00918.88
8.0.00.0150.01218.63
7.4.330.0050.00015.08
7.4.320.0020.00718.45
7.4.300.0080.00318.46
7.4.290.0120.00618.45
7.4.280.0140.00318.56
7.4.270.0030.00718.45
7.4.260.0210.00018.43
7.4.250.0080.00318.50
7.4.240.0050.00318.44
7.4.230.0060.00318.61
7.4.220.0260.00418.56
7.4.210.0140.01018.45
7.4.200.0040.00418.52
7.4.160.0170.01018.38
7.4.150.0190.00718.23
7.4.140.0140.01018.23
7.4.130.0100.01218.36
7.4.120.0180.00518.33
7.4.110.0190.01318.32
7.4.100.0220.00318.16
7.4.90.0180.01218.43
7.4.80.0080.01419.39
7.4.70.0140.01318.43
7.4.60.0250.00418.30
7.4.50.0050.00018.26
7.4.40.0210.00718.07
7.4.30.0130.01718.30
7.4.00.0050.01416.67
7.3.330.0050.00013.25
7.3.320.0060.00012.99
7.3.310.0050.00518.05
7.3.300.0040.00418.05
7.3.290.0090.00618.10
7.3.280.0120.00818.17
7.3.270.0090.00918.29
7.3.260.0060.01518.20
7.3.250.0140.01318.18
7.3.240.0140.01418.19
7.3.230.0200.00718.27
7.3.210.0140.01818.39
7.3.200.0160.00319.39
7.3.190.0170.01018.39
7.3.180.0220.00818.10
7.3.170.0170.00918.05
7.3.160.0140.01418.06
7.3.120.0090.00916.56
7.3.110.0150.00416.47
7.3.100.0100.01016.90
7.3.90.0080.00316.50
7.3.80.0030.01016.92
7.3.70.0000.01016.46
7.3.60.0040.01116.88
7.3.50.0000.01516.55
7.3.40.0100.00316.73
7.3.30.0030.00616.48
7.3.20.0060.00618.32
7.3.10.0140.00018.29
7.3.00.0090.00618.17
7.2.330.0110.01518.55
7.2.320.0110.01018.62
7.2.310.0100.01318.58
7.2.300.0130.01318.63
7.2.290.0180.01518.52
7.2.250.0070.01116.46
7.2.240.0100.01016.81
7.2.230.0040.01516.32
7.2.220.0090.00316.62
7.2.210.0030.01316.92
7.2.200.0120.00316.89
7.2.190.0090.00616.91
7.2.180.0140.00316.63
7.2.170.0100.00716.56
7.2.80.0040.01518.34
7.2.00.0060.00621.07
7.1.330.0030.01117.60
7.1.320.0060.00317.48
7.1.310.0070.00717.62
7.1.300.0030.00617.65
7.1.290.0060.00917.30
7.1.280.0070.01117.61
7.1.270.0040.00717.65
7.1.260.0030.00917.29
7.1.200.0060.00617.60
7.1.100.0000.00820.11
7.1.70.0060.00318.75
7.1.60.0050.00818.76
7.1.50.0140.01418.89
7.1.00.0070.07324.39
7.0.200.0190.00618.31
7.0.140.0030.07323.89
7.0.110.0030.07321.86
7.0.100.0000.06021.96
7.0.90.0070.06021.89
7.0.80.0100.03721.87
7.0.70.0070.04021.83
7.0.60.0030.04021.88
7.0.50.0030.04321.80
7.0.40.0100.03321.63
7.0.30.0070.04021.50
7.0.20.0100.03321.66
7.0.10.0030.04321.62
7.0.00.0000.04321.72
5.6.260.0000.04322.47
5.6.250.0030.05022.32
5.6.240.0100.07722.51
5.6.230.0000.04322.34
5.6.220.0070.06722.50
5.6.210.0100.04322.42
5.6.200.0030.04322.54
5.6.190.0100.04322.43
5.6.180.0000.04722.43
5.6.170.0070.03722.45
5.6.160.0070.03722.16
5.6.150.0030.04322.56
5.6.140.0030.04722.44
5.6.130.0070.03722.40
5.6.120.0030.04022.15
5.6.110.0000.03722.45
5.6.100.0070.04022.52
5.6.90.0000.04322.45
5.6.80.0000.03721.85
5.6.70.0000.04021.69
5.6.60.0000.04321.64
5.6.50.0000.06321.95
5.6.40.0070.08021.62
5.6.30.0130.04021.70
5.6.20.0000.04021.72
5.6.10.0000.08321.75
5.6.00.0030.06721.66
5.5.380.0000.04717.63
5.5.370.0030.04017.61
5.5.360.0030.04017.57
5.5.350.0000.04317.62
5.5.340.0000.04718.10
5.5.330.0030.03718.01
5.5.320.0070.03718.10
5.5.310.0030.04017.86
5.5.300.0000.04318.09
5.5.290.0070.04017.84
5.5.280.0030.03318.16
5.5.270.0000.04318.09
5.5.260.0030.04017.84
5.5.250.0070.04317.68
5.5.240.0030.06017.41
5.5.230.0100.03317.41
5.5.220.0070.08017.14
5.5.210.0100.07017.13
5.5.200.0000.04017.45
5.5.190.0070.06317.48
5.5.180.0070.07017.51
5.5.160.0000.04017.21
5.5.150.0030.07017.47
5.5.140.0070.07317.50
5.5.130.0070.08017.19
5.5.120.0000.04317.19
5.5.110.0000.04017.21
5.5.100.0030.04317.24
5.5.90.0030.05717.34
5.5.80.0030.04017.27
5.5.70.0130.02717.11
5.5.60.0070.06717.23
5.5.50.0030.06717.23
5.5.40.0030.04317.14
5.5.30.0070.05717.13
5.5.20.0030.07317.36
5.5.10.0030.08017.00
5.5.00.0100.07317.22
5.4.450.0100.03021.05
5.4.440.0030.04021.31
5.4.430.0070.04021.27
5.4.420.0070.04021.25
5.4.410.0100.03720.93
5.4.400.0000.08320.95
5.4.390.0070.06320.48
5.4.380.0070.06020.70
5.4.370.0000.07720.94
5.4.360.0070.07720.93
5.4.350.0100.06720.53
5.4.340.0000.08020.93
5.4.320.0070.09020.85
5.4.310.0100.07320.94
5.4.300.0030.03720.69
5.4.290.0030.05720.52
5.4.280.0000.04020.73
5.4.270.0030.04020.93
5.4.260.0100.06020.85
5.4.250.0100.03320.71
5.4.240.0170.06320.94
5.4.230.0030.03720.86
5.4.220.0030.05320.94
5.4.210.0130.07020.77
5.4.200.0070.03320.97
5.4.190.0000.04720.68
5.4.180.0100.07320.91
5.4.170.0070.04720.77
5.4.160.0130.07020.92
5.4.150.0070.05720.83
5.4.140.0070.08018.34
5.4.130.0070.07318.33
5.4.120.0000.07318.14
5.4.110.0070.03018.30
5.4.100.0030.03318.16
5.4.90.0000.09018.07
5.4.80.0070.03318.15
5.4.70.0030.03718.05
5.4.60.0030.04018.06
5.4.50.0070.03018.07
5.4.40.0130.02318.17
5.4.30.0070.03318.27
5.4.20.0100.07318.04
5.4.10.0070.06018.11
5.4.00.0030.07317.75
5.3.290.0000.04014.46
5.3.280.0030.07014.62
5.3.270.0100.06714.54
5.3.260.0130.02314.61
5.3.250.0230.04714.48
5.3.240.0030.07314.51
5.3.230.0030.07014.49
5.3.220.0070.07714.59
5.3.210.0070.04014.56
5.3.200.0130.02314.46
5.3.190.0100.06714.39
5.3.180.0100.06714.56
5.3.170.0030.04314.50
5.3.160.0000.04014.45
5.3.150.0100.03314.46
5.3.140.0100.03014.46
5.3.130.0000.04314.60
5.3.120.0070.03314.48
5.3.110.0030.07014.61
5.3.100.0000.08314.13
5.3.90.0070.03713.80
5.3.80.0070.03314.07
5.3.70.0070.04713.89
5.3.60.0070.03313.95
5.3.50.0070.04014.05
5.3.40.0030.03713.83
5.3.30.0030.06713.96
5.3.20.0030.06713.63
5.3.10.0070.02313.59
5.3.00.0000.04713.55
5.2.170.0070.04311.82
5.2.160.0070.04011.82
5.2.150.0000.03311.82
5.2.140.0030.05711.82
5.2.130.0100.04711.82
5.2.120.0000.02711.82
5.2.110.0030.02711.82
5.2.100.0000.02711.82
5.2.90.0030.05311.82
5.2.80.0030.06011.82
5.2.70.0070.02011.82
5.2.60.0000.03011.82
5.2.50.0070.05011.82
5.2.40.0030.04011.82
5.2.30.0030.06011.82
5.2.20.0100.04311.82
5.2.10.0000.04011.82
5.2.00.0030.02711.82
5.1.60.0070.04011.82
5.1.50.0000.02311.82
5.1.40.0030.02311.82
5.1.30.0000.05311.82
5.1.20.0070.02311.82
5.1.10.0030.03011.82
5.1.00.0000.02311.82
5.0.50.0030.01711.82
5.0.40.0000.02311.82
5.0.30.0030.03011.82
5.0.20.0000.02011.82
5.0.10.0030.01711.82
5.0.00.0000.03011.82
4.4.90.0030.01311.82
4.4.80.0000.01711.82
4.4.70.0000.03011.82
4.4.60.0000.01311.82
4.4.50.0030.01311.82
4.4.40.0000.05311.82
4.4.30.0000.02311.82
4.4.20.0030.03311.82
4.4.10.0000.01711.82
4.4.00.0000.02311.82
4.3.110.0030.01311.82
4.3.100.0030.01311.82
4.3.90.0030.01311.82
4.3.80.0000.02711.82
4.3.70.0000.01311.82
4.3.60.0000.01311.82
4.3.50.0000.01711.82
4.3.40.0000.02311.82
4.3.30.0030.01311.82
4.3.20.0030.01311.82
4.3.10.0030.01011.82
4.3.00.0000.01311.82

preferences:
53.36 ms | 401 KiB | 5 Q