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.0150.00620.40
8.3.50.0130.00822.21
8.3.40.0120.00320.11
8.3.30.0100.00720.40
8.3.20.0050.00321.83
8.3.10.0060.00323.60
8.3.00.0000.00824.52
8.2.180.0120.00918.75
8.2.170.0180.00322.96
8.2.160.0040.01820.71
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0140.00426.16
8.2.120.0130.01021.13
8.2.110.0070.00322.87
8.2.100.0130.00019.59
8.2.90.0000.00820.78
8.2.80.0000.00819.38
8.2.70.0080.00019.38
8.2.60.0130.00719.43
8.2.50.0040.00419.38
8.2.40.0050.00721.70
8.2.30.0000.01019.80
8.2.20.0080.00419.43
8.2.10.0040.00419.48
8.2.00.0110.00519.41
8.1.280.0060.00925.92
8.1.270.0050.00323.57
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00325.25
8.1.230.0110.00019.36
8.1.220.0040.00419.54
8.1.210.0070.00418.97
8.1.200.0070.00319.10
8.1.190.0050.00318.97
8.1.180.0030.00518.88
8.1.170.0090.00922.19
8.1.160.0040.00423.54
8.1.150.0100.00320.10
8.1.140.0090.00019.11
8.1.130.0050.00519.75
8.1.120.0040.00419.27
8.1.110.0000.01119.36
8.1.100.0030.00519.31
8.1.90.0080.00319.21
8.1.80.0040.00419.39
8.1.70.0020.00519.30
8.1.60.0110.00319.38
8.1.50.0030.00919.39
8.1.40.0080.00019.13
8.1.30.0030.00619.55
8.1.20.0030.00619.51
8.1.10.0060.00619.59
8.1.00.0000.00819.28
8.0.300.0040.00418.91
8.0.290.0050.00318.46
8.0.280.0070.00019.87
8.0.270.0050.00519.12
8.0.260.0030.00518.66
8.0.250.0040.00418.88
8.0.240.0080.00318.64
8.0.230.0040.00418.88
8.0.220.0030.00518.73
8.0.210.0090.00018.64
8.0.200.0000.00718.62
8.0.190.0130.00418.73
8.0.180.0060.00318.69
8.0.170.0030.00718.68
8.0.160.0060.00318.63
8.0.150.0050.00518.53
8.0.140.0050.00518.65
8.0.130.0000.00513.35
8.0.120.0080.00018.64
8.0.110.0040.00418.82
8.0.100.0050.00318.88
8.0.90.0000.00818.68
8.0.80.0040.01618.79
8.0.70.0030.00818.84
8.0.60.0050.00318.71
8.0.50.0050.00318.57
8.0.30.0080.01318.97
8.0.20.0080.01518.95
8.0.10.0080.00018.67
8.0.00.0170.00518.77
7.4.330.0000.00515.00
7.4.320.0040.00418.43
7.4.300.0060.00018.62
7.4.290.0150.00018.29
7.4.280.0040.00418.44
7.4.270.0000.00818.53
7.4.260.0150.00018.24
7.4.250.0030.00618.42
7.4.240.0050.00318.44
7.4.230.0040.00418.57
7.4.220.0200.01018.43
7.4.210.0080.01118.56
7.4.200.0040.00418.48
7.4.190.0060.00318.58
7.4.160.0110.00618.24
7.4.150.0170.00318.38
7.4.140.0130.00818.22
7.4.130.0200.00818.30
7.4.120.0170.00718.24
7.4.110.0140.00918.37
7.4.100.0110.01118.40
7.4.90.0090.00918.39
7.4.80.0140.01819.39
7.4.70.0140.01418.45
7.4.60.0100.01318.41
7.4.50.0040.00418.23
7.4.40.0040.01122.77
7.4.30.0070.01118.29
7.4.10.0090.00916.70
7.4.00.0050.01216.64
7.3.330.0050.00013.07
7.3.320.0030.00312.95
7.3.310.0050.00318.10
7.3.300.0000.00718.18
7.3.290.0230.00617.99
7.3.280.0100.01018.06
7.3.270.0140.00718.46
7.3.260.0120.01218.25
7.3.250.0130.00618.25
7.3.240.0120.00618.35
7.3.230.0180.00618.12
7.3.210.0060.01318.21
7.3.200.0100.00719.39
7.3.190.0070.01418.48
7.3.180.0060.01018.04
7.3.170.0150.00418.04
7.3.160.0070.01018.15
7.3.130.0070.01316.32
7.3.120.0070.00916.68
7.3.110.0060.01216.60
7.3.100.0070.00716.63
7.3.90.0130.00016.78
7.3.80.0040.00816.68
7.3.70.0060.01216.83
7.3.60.0120.00016.56
7.3.50.0040.01116.57
7.3.40.0060.00316.59
7.3.30.0030.00816.71
7.3.20.0080.00818.18
7.3.10.0030.00718.23
7.3.00.0070.00717.99
7.2.330.0130.00618.30
7.2.320.0230.01618.52
7.2.310.0130.01318.68
7.2.300.0080.01118.14
7.2.290.0140.00818.27
7.2.260.0100.01016.67
7.2.250.0060.01316.96
7.2.240.0090.00617.05
7.2.230.0090.00617.07
7.2.220.0100.00316.76
7.2.210.0030.01316.42
7.2.200.0050.00516.71
7.2.190.0060.00916.76
7.2.180.0090.00616.66
7.2.170.0030.01016.69
7.2.160.0040.00816.93
7.2.150.0110.00718.55
7.2.140.0120.00318.68
7.2.130.0040.01218.27
7.2.120.0100.00318.56
7.2.110.0030.01318.48
7.2.100.0030.01018.38
7.2.90.0060.00318.77
7.2.80.0030.00918.43
7.2.70.0030.01218.54
7.2.60.0040.01218.86
7.2.50.0110.00318.41
7.2.40.0000.01218.46
7.2.30.0070.01118.51
7.2.20.0040.01118.45
7.2.10.0070.01018.51
7.2.00.0000.01418.70
7.1.330.0030.00917.61
7.1.320.0100.00017.60
7.1.310.0040.00917.46
7.1.300.0100.00317.75
7.1.290.0100.00717.46
7.1.280.0090.00317.40
7.1.270.0040.01217.27
7.1.260.0030.01017.65
7.1.250.0040.01117.85
7.1.240.0070.00717.44
7.1.230.0080.00617.71
7.1.220.0060.00617.51
7.1.210.0040.01117.59
7.1.200.0100.00317.53
7.1.190.0000.00917.55
7.1.180.0000.01417.43
7.1.170.0030.00917.65
7.1.160.0000.01317.80
7.1.150.0040.00717.63
7.1.140.0070.01017.71
7.1.130.0120.00317.68
7.1.120.0080.00817.60
7.1.110.0070.00717.53
7.1.100.0040.01117.24
7.1.90.0000.01117.70
7.1.80.0140.00317.60
7.1.70.0090.00618.23
7.1.60.0050.01318.61
7.1.50.0030.01618.19
7.1.40.0040.00817.73
7.1.30.0040.00817.57
7.1.20.0030.01317.71
7.1.10.0000.01417.89
7.1.00.0050.03020.93
7.0.330.0070.00717.38
7.0.320.0000.01617.16
7.0.310.0140.00017.42
7.0.300.0030.01517.05
7.0.290.0060.00917.35
7.0.280.0030.00917.31
7.0.270.0090.00617.59
7.0.260.0040.01117.34
7.0.250.0070.00717.32
7.0.240.0040.00717.37
7.0.230.0030.01017.27
7.0.220.0000.01517.28
7.0.210.0110.00417.27
7.0.200.0030.00717.86
7.0.190.0100.00317.19
7.0.180.0040.00417.36
7.0.170.0030.00817.26
7.0.160.0030.00617.28
7.0.150.0090.00317.29
7.0.140.0080.03920.74
7.0.130.0110.00417.29
7.0.120.0130.00317.13
7.0.110.0000.01417.21
7.0.100.0080.02819.49
7.0.90.0070.04219.49
7.0.80.0030.05019.41
7.0.70.0050.04519.50
7.0.60.0070.04019.46
7.0.50.0090.04119.67
7.0.40.0090.04618.65
7.0.30.0070.03918.57
7.0.20.0070.04218.56
7.0.10.0120.04218.65
7.0.00.0110.04018.46
5.6.400.0060.00616.09
5.6.390.0060.00616.34
5.6.380.0030.01215.95
5.6.370.0030.01016.25
5.6.360.0090.00316.35
5.6.350.0100.00316.22
5.6.340.0110.00316.14
5.6.330.0090.00616.03
5.6.320.0040.00816.03
5.6.310.0030.01016.30
5.6.300.0060.00616.18
5.6.290.0000.01416.30
5.6.280.0020.04319.38
5.6.270.0090.00616.10
5.6.260.0040.01416.09
5.6.250.0100.02519.19
5.6.240.0030.04519.15
5.6.230.0080.02019.24
5.6.220.0140.03619.38
5.6.210.0080.03819.25
5.6.200.0090.04419.57
5.6.190.0140.02519.41
5.6.180.0150.03519.53
5.6.170.0080.04519.42
5.6.160.0100.04219.42
5.6.150.0020.05019.42
5.6.140.0120.04019.62
5.6.130.0020.05119.52
5.6.120.0070.04819.56
5.6.110.0120.04019.49
5.6.100.0050.03519.30
5.6.90.0120.04219.53
5.6.80.0160.03519.30
5.6.70.0050.03719.12
5.6.60.0050.04019.18
5.6.50.0050.04519.04
5.6.40.0080.04219.09
5.6.30.0060.04619.16
5.6.20.0100.02419.10
5.6.10.0080.02819.08
5.6.00.0050.04719.21
5.5.380.0080.04019.18
5.5.370.0100.03818.99
5.5.360.0050.04519.15
5.5.350.0140.03719.14
5.5.340.0120.04319.20
5.5.330.0070.02919.38
5.5.320.0090.04519.38
5.5.310.0130.03619.37
5.5.300.0080.04419.38
5.5.290.0050.05219.57
5.5.280.0050.03319.46
5.5.270.0050.03819.04
5.5.260.0090.02519.45
5.5.250.0020.05219.00
5.5.240.0090.02518.89
5.5.230.0100.04219.05
5.5.220.0090.04019.06
5.5.210.0070.03519.13
5.5.200.0070.04518.92
5.5.190.0080.04119.00
5.5.180.0070.04919.03
5.5.170.0000.01715.93
5.5.160.0050.04618.95
5.5.150.0050.03019.25
5.5.140.0070.04419.14
5.5.130.0060.04119.09
5.5.120.0070.04119.11
5.5.110.0050.04219.04
5.5.100.0070.03019.07
5.5.90.0070.04219.06
5.5.80.0070.03019.01
5.5.70.0140.03518.92
5.5.60.0030.03618.88
5.5.50.0080.04518.89
5.5.40.0070.04218.88
5.5.30.0030.03318.92
5.5.20.0140.03618.84
5.5.10.0130.02518.84
5.5.00.0050.04119.08
5.4.450.0120.03916.55
5.4.440.0110.03316.65
5.4.430.0060.04216.70
5.4.420.0070.03916.60
5.4.410.0120.03816.57
5.4.400.0050.03916.54
5.4.390.0100.02816.48
5.4.380.0100.03816.32
5.4.370.0040.03716.34
5.4.360.0060.04316.48
5.4.350.0070.04416.54
5.4.340.0050.04316.37
5.4.330.0060.00612.14
5.4.320.0060.03816.32
5.4.310.0050.04216.54
5.4.300.0150.03216.48
5.4.290.0100.03816.44
5.4.280.0100.04016.49
5.4.270.0050.03616.48
5.4.260.0030.04316.47
5.4.250.0030.03416.47
5.4.240.0080.03816.54
5.4.230.0040.02616.54
5.4.220.0130.03716.56
5.4.210.0130.03016.48
5.4.200.0030.04216.45
5.4.190.0080.04216.32
5.4.180.0050.03716.39
5.4.170.0140.03516.33
5.4.160.0030.04316.47
5.4.150.0020.04516.32
5.4.140.0030.04415.19
5.4.130.0070.03715.09
5.4.120.0070.03715.18
5.4.110.0050.03915.22
5.4.100.0020.03515.08
5.4.90.0060.02215.10
5.4.80.0010.02615.13
5.4.70.0070.03715.07
5.4.60.0030.03815.11
5.4.50.0100.03215.19
5.4.40.0030.04415.25
5.4.30.0060.04015.03
5.4.20.0060.03315.12
5.4.10.0100.03515.12
5.4.00.0050.04214.93
5.3.290.0070.07314.64
5.3.280.0100.07714.59
5.3.270.0030.08014.59
5.3.260.0070.08014.57
5.3.250.0030.07014.61
5.3.240.0130.07014.58
5.3.230.0130.06014.46
5.3.220.0070.07014.43
5.3.210.0100.06714.42
5.3.200.0070.05014.50
5.3.190.0030.07714.52
5.3.180.0100.07314.55
5.3.170.0000.08014.42
5.3.160.0070.08014.52
5.3.150.0130.06314.53
5.3.140.0000.08014.52
5.3.130.0070.07714.54
5.3.120.0070.07714.51
5.3.110.0070.08014.51
5.3.100.0070.07713.95
5.3.90.0170.06014.02
5.3.80.0070.05713.99
5.3.70.0100.06714.02
5.3.60.0070.07714.01
5.3.50.0030.08013.80
5.3.40.0100.07013.89
5.3.30.0070.07313.91
5.3.20.0070.07013.68
5.3.10.0070.07013.51
5.3.00.0030.07713.50
5.2.170.0100.05711.48
5.2.160.0030.06311.48
5.2.150.0000.04711.48
5.2.140.0100.05711.48
5.2.130.0130.05011.48
5.2.120.0000.05011.48
5.2.110.0100.05711.48
5.2.100.0030.06711.48
5.2.90.0030.06011.48
5.2.80.0030.06311.48
5.2.70.0100.05711.48
5.2.60.0070.06311.48
5.2.50.0070.05311.48
5.2.40.0100.05011.48
5.2.30.0000.06711.48
5.2.20.0030.06011.48
5.2.10.0070.05711.48
5.2.00.0000.06711.48
5.1.60.0100.05011.48
5.1.50.0070.05311.48
5.1.40.0030.03711.48
5.1.30.0070.05311.48
5.1.20.0100.05011.48
5.1.10.0030.05711.48
5.1.00.0130.03711.48
5.0.50.0030.04711.48
5.0.40.0030.03711.48
5.0.30.0100.05711.48
5.0.20.0070.04311.48
5.0.10.0100.04011.48
5.0.00.0000.06311.48
4.4.90.0000.03711.48
4.4.80.0100.02711.48
4.4.70.0030.03711.48
4.4.60.0030.03711.48
4.4.50.0070.03011.48
4.4.40.0030.05011.48
4.4.30.0000.03711.48
4.4.20.0000.03711.48
4.4.10.0000.03711.48
4.4.00.0030.05011.48
4.3.110.0000.04011.48
4.3.100.0030.03711.48
4.3.90.0070.01311.48
4.3.80.0000.05311.48
4.3.70.0000.03711.48
4.3.60.0030.02011.48
4.3.50.0070.03011.48
4.3.40.0000.03011.48
4.3.30.0000.03711.48
4.3.20.0000.04011.48
4.3.10.0000.04011.48
4.3.00.0030.01711.48

preferences:
42.9 ms | 400 KiB | 5 Q