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.0120.00320.30
8.3.50.0140.00722.27
8.3.40.0110.00420.34
8.3.30.0040.01121.96
8.3.20.0080.00021.89
8.3.10.0050.00322.60
8.3.00.0050.00525.16
8.2.180.0130.00320.54
8.2.170.0110.00722.96
8.2.160.0150.00021.80
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00422.96
8.2.110.0070.00323.72
8.2.100.0080.00419.34
8.2.90.0040.00420.55
8.2.80.0040.00419.38
8.2.70.0060.00319.25
8.2.60.0000.00819.68
8.2.50.0060.00319.38
8.2.40.0120.00221.63
8.2.30.0070.00421.28
8.2.20.0070.00019.42
8.2.10.0050.00319.28
8.2.00.0070.00719.33
8.1.280.0070.01025.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00023.39
8.1.230.0030.00919.08
8.1.220.0080.00019.51
8.1.210.0000.00819.10
8.1.200.0040.00419.10
8.1.190.0000.00819.28
8.1.180.0030.00619.28
8.1.170.0000.00820.33
8.1.160.0070.00420.17
8.1.150.0100.00320.09
8.1.140.0030.00619.40
8.1.130.0070.00019.59
8.1.120.0040.00419.20
8.1.110.0000.01219.35
8.1.100.0030.00619.30
8.1.90.0000.00819.26
8.1.80.0000.00919.36
8.1.70.0000.00919.28
8.1.60.0190.00819.40
8.1.50.0050.00319.33
8.1.40.0070.00319.43
8.1.30.0060.00319.48
8.1.20.0050.00519.63
8.1.10.0060.00319.38
8.1.00.0060.00319.47
8.0.300.0050.00318.77
8.0.290.0000.00718.38
8.0.280.0080.00019.97
8.0.270.0050.01018.95
8.0.260.0110.00018.70
8.0.250.0030.00518.75
8.0.240.0100.00318.59
8.0.230.0080.00418.63
8.0.220.0000.00818.65
8.0.210.0080.00418.71
8.0.200.0030.00318.63
8.0.190.0000.00818.64
8.0.180.0040.00718.62
8.0.170.0050.00318.63
8.0.160.0020.00518.63
8.0.150.0000.01018.45
8.0.140.0120.00618.59
8.0.130.0000.00513.31
8.0.120.0060.00318.81
8.0.110.0000.00818.65
8.0.100.0060.00318.76
8.0.90.0000.00818.72
8.0.80.0100.00718.75
8.0.70.0030.00618.71
8.0.60.0000.00818.54
8.0.50.0080.00018.66
8.0.30.0110.00918.89
8.0.20.0150.00818.94
8.0.10.0060.00318.73
8.0.00.0140.00918.75
7.4.330.0050.00016.83
7.4.320.0050.00318.59
7.4.300.0030.00318.45
7.4.290.0110.00318.41
7.4.280.0070.00018.25
7.4.270.0000.00718.59
7.4.260.0050.00013.25
7.4.250.0070.00018.43
7.4.240.0040.00418.42
7.4.230.0000.00718.69
7.4.220.0110.01218.33
7.4.210.0080.00918.53
7.4.200.0040.00418.36
7.4.190.0060.00318.40
7.4.160.0170.00018.43
7.4.150.0030.01718.57
7.4.140.0120.00918.41
7.4.130.0110.01018.29
7.4.120.0150.01218.27
7.4.110.0080.01518.21
7.4.100.0060.01218.27
7.4.90.0060.01318.22
7.4.80.0160.00319.39
7.4.70.0150.01918.43
7.4.60.0140.01218.38
7.4.50.0100.00318.14
7.4.40.0000.01522.77
7.4.30.0090.01218.38
7.4.00.0030.01016.73
7.3.330.0030.00313.11
7.3.320.0000.00513.11
7.3.310.0000.00717.91
7.3.300.0070.00018.08
7.3.290.0060.00918.03
7.3.280.0120.00918.13
7.3.270.0120.00918.23
7.3.260.0110.01418.31
7.3.250.0110.00718.23
7.3.240.0130.00618.20
7.3.230.0170.00818.05
7.3.210.0150.00418.05
7.3.200.0120.01219.39
7.3.190.0110.00818.06
7.3.180.0130.01318.01
7.3.170.0130.01018.18
7.3.160.0040.01518.07
7.3.120.0100.00316.75
7.2.330.0130.00718.50
7.2.320.0090.01618.70
7.2.310.0070.01618.32
7.2.300.0030.01518.51
7.2.290.0080.01018.66
7.2.00.0100.00321.61
7.1.100.0090.00920.23
7.1.70.0080.00819.07
7.1.60.0040.01519.19
7.1.50.0090.00918.88
7.1.00.0030.05724.46
7.0.200.0040.00818.59
7.0.140.0070.06324.10
7.0.100.0070.03721.83
7.0.90.0270.08321.93
7.0.80.0170.06321.72
7.0.70.0100.07321.77
7.0.60.0030.09021.82
7.0.50.0000.07722.05
7.0.40.0170.03321.85
7.0.30.0200.07721.79
7.0.20.0100.04721.95
7.0.10.0000.08721.94
7.0.00.0070.08321.75
5.6.280.0030.04722.84
5.6.250.0070.08322.45
5.6.240.0100.06722.33
5.6.230.0030.04722.39
5.6.220.0030.08322.36
5.6.210.0170.07022.32
5.6.200.0270.03722.61
5.6.190.0130.08322.64
5.6.180.0100.06722.93
5.6.170.0030.05022.87
5.6.160.0070.07722.63
5.6.150.0100.06322.75
5.6.140.0030.05322.92
5.6.130.0070.08022.61
5.6.120.0070.04322.93
5.6.110.0070.08022.66
5.6.100.0100.08322.60
5.6.90.0070.05322.63
5.6.80.0130.07722.31
5.6.70.0100.08722.27
5.6.60.0170.04322.12
5.6.50.0200.06321.98
5.6.40.0130.05322.25
5.6.30.0030.08322.02
5.6.20.0030.04322.00
5.6.10.0030.08022.27
5.6.00.0070.08022.38
5.5.380.0070.04722.20
5.5.370.0170.06322.16
5.5.360.0000.05022.20
5.5.350.0000.04722.23
5.5.340.0030.08322.83
5.5.330.0130.05722.26
5.5.320.0000.09022.85
5.5.310.0100.06322.68
5.5.300.0130.03722.82
5.5.290.0170.08022.73
5.5.280.0000.05022.50
5.5.270.0100.08322.54
5.5.260.0070.04322.25
5.5.250.0070.07022.39
5.5.240.0130.05322.00
5.5.230.0030.06722.20
5.5.220.0070.08021.99
5.5.210.0170.06321.64
5.5.200.0030.09021.77
5.5.190.0100.07722.19
5.5.180.0000.08722.09
5.5.160.0100.07721.77
5.5.150.0000.05322.00
5.5.140.0000.04721.93
5.5.130.0070.06321.89
5.5.120.0130.06021.90
5.5.110.0030.05321.91
5.5.100.0030.08321.96
5.5.90.0030.05321.76
5.5.80.0130.04721.96
5.5.70.0030.08321.63
5.5.60.0000.04021.78
5.5.50.0070.07021.67
5.5.40.0030.07721.96
5.5.30.0100.08021.77
5.5.20.0030.08321.65
5.5.10.0030.08321.95
5.5.00.0070.08321.50
5.4.450.0100.07721.13
5.4.440.0030.03721.11
5.4.430.0000.04020.85
5.4.420.0100.03321.03
5.4.410.0100.03720.94
5.4.400.0130.05020.71
5.4.390.0030.08020.80
5.4.380.0100.06320.53
5.4.370.0170.07320.50
5.4.360.0030.04020.76
5.4.350.0070.07020.75
5.4.340.0100.07020.79
5.4.320.0070.07320.79
5.4.310.0130.04020.79
5.4.300.0100.03720.49
5.4.290.0070.08320.95
5.4.280.0130.06720.59
5.4.270.0130.07020.90
5.4.260.0030.07020.90
5.4.250.0100.04320.51
5.4.240.0070.05320.70
5.4.230.0100.06320.52
5.4.220.0070.06720.79
5.4.210.0130.07020.79
5.4.200.0000.04320.49
5.4.190.0130.07020.73
5.4.180.0030.08020.79
5.4.170.0070.03720.57
5.4.160.0000.04020.80
5.4.150.0130.03020.60
5.4.140.0100.08018.27
5.4.130.0000.06718.11
5.4.120.0100.07018.04
5.4.110.0100.07018.17
5.4.100.0000.04317.93
5.4.90.0100.04318.06
5.4.80.0000.04018.35
5.4.70.0000.04318.06
5.4.60.0070.07718.13
5.4.50.0070.05318.05
5.4.40.0070.04018.07
5.4.30.0070.04018.13
5.4.20.0030.07318.07
5.4.10.0130.03717.97
5.4.00.0030.06317.78
5.3.290.0030.05014.48
5.3.280.0030.07014.57
5.3.270.0070.07314.46
5.3.260.0070.05314.46
5.3.250.0030.05714.59
5.3.240.0130.07014.46
5.3.230.0100.07714.58
5.3.220.0070.07714.53
5.3.210.0000.04314.58
5.3.200.0030.08014.48
5.3.190.0070.06314.53
5.3.180.0030.07314.55
5.3.170.0030.06014.52
5.3.160.0030.04314.38
5.3.150.0130.05314.38
5.3.140.0030.07314.41
5.3.130.0000.04714.53
5.3.120.0070.08014.55
5.3.110.0070.03714.52
5.3.100.0070.06013.95
5.3.90.0070.08314.02
5.3.80.0030.05314.01
5.3.70.0000.08013.87
5.3.60.0030.07313.86
5.3.50.0030.08013.72
5.3.40.0070.04713.90
5.3.30.0070.06013.66
5.3.20.0030.04313.59
5.3.10.0100.04713.50
5.3.00.0030.04713.58
5.2.170.0100.05711.10
5.2.160.0070.03311.09
5.2.150.0000.04311.11
5.2.140.0000.06711.00
5.2.130.0030.05711.17
5.2.120.0030.06710.96
5.2.110.0000.03310.89
5.2.100.0000.03010.96
5.2.90.0000.03310.92
5.2.80.0000.06311.09
5.2.70.0030.06311.16
5.2.60.0000.05011.00
5.2.50.0170.04711.09
5.2.40.0070.03010.79
5.2.30.0000.05010.93
5.2.20.0000.05010.75
5.2.10.0030.04310.80
5.2.00.0030.03010.70
5.1.60.0030.02710.02
5.1.50.0070.0209.99
5.1.40.0030.0279.87
5.1.30.0030.05010.45
5.1.20.0070.02310.40
5.1.10.0070.05310.01
5.1.00.0070.03710.08
5.0.50.0030.0239.31
5.0.40.0000.0209.31
5.0.30.0000.0339.31
5.0.20.0000.0209.31
5.0.10.0070.0239.31
5.0.00.0030.0509.31
4.4.90.0070.0209.31
4.4.80.0000.0179.31
4.4.70.0030.0139.31
4.4.60.0100.0179.31
4.4.50.0000.0209.31
4.4.40.0070.0209.31
4.4.30.0030.0309.31
4.4.20.0000.0239.31
4.4.10.0000.0309.31
4.4.00.0030.0279.31
4.3.110.0000.0209.31
4.3.100.0000.0309.31
4.3.90.0030.0179.31
4.3.80.0030.0279.31
4.3.70.0030.0279.31
4.3.60.0000.0179.31
4.3.50.0000.0179.31
4.3.40.0070.0379.31
4.3.30.0030.0139.31
4.3.20.0000.0309.31
4.3.10.0000.0179.31
4.3.00.0030.0139.31

preferences:
45.06 ms | 401 KiB | 5 Q