3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = NumberFormatter::create("en-US", NumberFormatter::DEFAULT_STYLE); $formatter->setAttribute(NumberFormatter::FRACTION_DIGITS, 2); print $formatter->format(60.65); print "\n"; print $formatter->format("60.65"); print "\n"; $formatter->setAttribute(NumberFormatter::FRACTION_DIGITS, 0); $formatter->setAttribute(NumberFormatter::ROUNDING_MODE, NumberFormatter::ROUND_HALFUP); print $formatter->format(60.65); print "\n"; print $formatter->format("60.65"); print "\n";

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.0070.01420.43
8.3.50.0140.00722.94
8.3.40.0070.01120.11
8.3.30.0090.00920.42
8.3.20.0040.00421.54
8.3.10.0060.00321.77
8.3.00.0050.00321.13
8.2.180.0380.00418.35
8.2.170.0040.01122.96
8.2.160.0100.00321.73
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0030.00623.64
8.2.110.0070.00322.92
8.2.100.0090.00319.53
8.2.90.0060.00319.47
8.2.80.0000.00819.91
8.2.70.0060.00319.38
8.2.60.0000.00819.13
8.2.50.0090.00319.00
8.2.40.0040.00419.38
8.2.30.0040.00421.15
8.2.20.0000.00819.50
8.2.10.0000.00819.80
8.2.00.0040.00419.54
8.1.280.0040.01525.92
8.1.270.0090.00023.45
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0100.00023.69
8.1.230.0110.00022.71
8.1.220.0110.00419.52
8.1.210.0030.00620.72
8.1.200.0080.00019.11
8.1.190.0030.00618.98
8.1.180.0050.00519.11
8.1.170.0070.00020.71
8.1.160.0000.00823.42
8.1.150.0000.00820.18
8.1.140.0080.00019.02
8.1.130.0030.00319.62
8.1.120.0000.00819.43
8.1.110.0030.00519.36
8.1.100.0070.00019.39
8.1.90.0040.00419.39
8.1.80.0050.00319.42
8.1.70.0040.00419.45
8.1.60.0040.00419.57
8.1.50.0030.00619.42
8.1.40.0040.00419.52
8.1.30.0040.00419.54
8.1.20.0080.00019.55
8.1.10.0060.00319.63
8.1.00.0090.00019.54
8.0.300.0070.00021.48
8.0.290.0060.00318.50
8.0.280.0000.00719.93
8.0.270.0000.00818.86
8.0.260.0040.00419.11
8.0.250.0030.00318.68
8.0.240.0040.00418.73
8.0.230.0000.00718.71
8.0.220.0000.00718.63
8.0.210.0030.00518.65
8.0.200.0030.00318.63
8.0.190.0060.00318.68
8.0.180.0030.00618.57
8.0.170.0040.00418.65
8.0.160.0000.00818.49
8.0.150.0040.00418.43
8.0.140.0000.00818.54
8.0.130.0050.00013.25
8.0.120.0050.00318.85
8.0.110.0040.00418.85
8.0.100.0050.00318.41
8.0.90.0080.00018.79
8.0.80.0160.00018.45
8.0.70.0050.00318.91
8.0.60.0000.00818.62
8.0.50.0030.00618.91
8.0.30.0150.00719.23
8.0.20.0130.00819.04
8.0.10.0050.00318.88
8.0.00.0150.00818.80
7.4.330.0000.00515.00
7.4.320.0070.00018.59
7.4.300.0060.00018.47
7.4.290.0040.00418.47
7.4.280.0000.00818.43
7.4.270.0030.00318.48
7.4.260.0070.00018.45
7.4.250.0050.00318.46
7.4.240.0040.00418.52
7.4.230.0040.00418.49
7.4.220.0090.01018.38
7.4.210.0110.00418.61
7.4.200.0030.00518.26
7.4.160.0060.00918.45
7.4.150.0150.00618.56
7.4.140.0120.00718.21
7.4.130.0090.01218.34
7.4.120.0090.01018.32
7.4.110.0060.01618.39
7.4.100.0090.00918.23
7.4.90.0130.00618.25
7.4.80.0090.00919.37
7.4.70.0100.00718.41
7.4.60.0160.00318.41
7.4.50.0060.00318.64
7.4.40.0130.00318.10
7.4.30.0110.00518.51
7.4.00.0110.00716.84
7.3.330.0030.00313.21
7.3.320.0060.00013.20
7.3.310.0000.00717.82
7.3.300.0000.00818.27
7.3.290.0110.00718.18
7.3.280.0100.00618.16
7.3.270.0120.00718.38
7.3.260.0160.00518.29
7.3.250.0140.00418.29
7.3.240.0030.01618.13
7.3.230.0180.00018.41
7.3.210.0080.00818.28
7.3.200.0070.01119.39
7.3.190.0090.01118.27
7.3.180.0060.01018.12
7.3.170.0090.00918.16
7.3.160.0130.00918.61
7.3.120.0090.00616.90
7.3.110.0000.01816.64
7.3.100.0060.01016.66
7.3.90.0110.00016.44
7.3.80.0120.00316.67
7.3.70.0070.00316.84
7.3.60.0060.00916.70
7.3.50.0070.01016.69
7.3.40.0030.01316.58
7.3.30.0070.01016.64
7.3.20.0090.00618.23
7.3.10.0070.01017.89
7.3.00.0090.00618.09
7.2.330.0040.01318.36
7.2.320.0030.01318.63
7.2.310.0000.02018.67
7.2.300.0130.01118.43
7.2.290.0090.00918.39
7.2.250.0090.00916.50
7.2.240.0040.01416.94
7.2.230.0030.01216.82
7.2.220.0060.00616.88
7.2.210.0110.00616.55
7.2.200.0060.00916.59
7.2.190.0000.01216.50
7.2.180.0130.00316.82
7.2.170.0100.00716.44
7.2.60.0070.00718.71
7.2.00.0000.01321.59
7.1.330.0030.01217.19
7.1.320.0000.01717.37
7.1.310.0030.01317.60
7.1.300.0070.00717.24
7.1.290.0070.00717.38
7.1.280.0030.00617.13
7.1.270.0000.01317.21
7.1.260.0090.00617.45
7.1.200.0060.00917.67
7.1.100.0080.00420.14
7.1.70.0030.00718.88
7.1.60.0040.01519.32
7.1.50.0070.01318.88
7.1.00.0000.07724.40
7.0.200.0000.01318.99
7.0.140.0000.07024.12
7.0.60.0100.07721.80
7.0.50.0070.06317.93
7.0.40.0070.04321.89
7.0.30.0270.08021.85
7.0.20.0270.05721.86
7.0.10.0230.04721.59
7.0.00.0000.06021.63
5.6.280.0070.07322.78
5.6.210.0070.07022.57
5.6.200.0230.06318.09
5.6.190.0170.08022.52
5.6.180.0130.05021.95
5.6.170.0300.07022.32
5.6.160.0070.03722.23
5.6.150.0170.04318.22
5.6.140.0000.04718.09
5.6.130.0070.05018.08
5.6.120.0170.05322.75
5.6.110.0130.04722.74
5.6.100.0030.04322.66
5.6.90.0130.07723.01
5.6.80.0100.08022.17
5.6.70.0330.06322.29
5.5.350.0070.04022.03
5.5.340.0100.08017.98
5.5.330.0130.03321.98
5.5.320.0300.08722.05
5.5.310.0170.05021.80
5.5.300.0170.07017.92
5.5.290.0070.08717.92
5.5.280.0030.08722.60
5.5.270.0170.07322.28
5.5.260.0030.04722.61
5.5.250.0070.06022.36
5.5.240.0070.08022.18
5.4.450.0600.06021.13
5.4.440.0830.05321.17
5.4.430.0930.05721.22
5.4.420.0730.00021.13
5.4.410.0670.00021.02
5.4.400.0630.00020.66
5.4.390.0630.00020.64
5.4.380.0430.05720.23
5.4.370.0430.04720.48
5.4.360.0400.06320.22
5.4.350.0370.05320.22
5.4.340.0500.05020.22
5.4.320.0050.03612.46
5.4.310.0100.04312.45
5.4.300.0080.03812.45
5.4.290.0040.04012.45
5.4.280.0060.04812.35
5.4.270.0080.03412.35
5.4.260.0040.04012.35
5.4.250.0130.04412.35
5.4.240.0070.03512.35
5.4.230.0070.04212.34
5.4.220.0080.03712.34
5.4.210.0060.03912.34
5.4.200.0070.04612.34
5.4.190.0060.03612.34
5.4.180.0040.03812.34
5.4.170.0050.03712.35
5.4.160.0060.03512.34
5.4.150.0050.03712.34
5.4.140.0050.03712.02
5.4.130.0060.03612.01
5.4.120.0080.03311.97
5.4.110.0070.03311.97
5.4.100.0040.03711.96
5.4.90.0070.03611.96
5.4.80.0050.03711.96
5.4.70.0060.03711.96
5.4.60.0050.03511.96
5.4.50.0090.04011.96
5.4.40.0070.04911.95
5.4.30.0080.04711.95
5.4.20.0060.04211.95
5.4.10.0030.04611.95
5.4.00.0050.04111.45
5.3.290.0080.03812.80
5.3.280.0080.03712.71
5.3.270.0040.04012.72
5.3.260.0070.03712.72
5.3.250.0080.03412.71
5.3.240.0070.03612.72
5.3.230.0070.04212.71
5.3.220.0040.03912.68
5.3.210.0060.03912.68
5.3.200.0060.03612.68
5.3.190.0100.03312.68
5.3.180.0040.03912.67
5.3.170.0060.04412.67
5.3.160.0070.03512.68
5.3.150.0030.04012.68
5.3.140.0060.03712.66
5.3.130.0070.03912.66
5.3.120.0060.04212.66
5.3.110.0080.03712.65
5.3.100.0070.03612.12
5.3.90.0070.03512.08
5.3.80.0050.03712.07
5.3.70.0070.03512.08
5.3.60.0040.04112.06
5.3.50.0080.03412.00
5.3.40.0080.03512.00
5.3.30.0070.03411.95
5.3.20.0080.03411.73
5.3.10.0060.03511.69
5.3.00.0020.04011.68
5.2.170.0060.0299.18
5.2.160.0040.0339.18
5.2.150.0030.0349.18
5.2.140.0040.0319.18
5.2.130.0060.0369.14
5.2.120.0090.0379.14
5.2.110.0080.0279.15
5.2.100.0050.0299.14
5.2.90.0070.0279.14
5.2.80.0040.0319.14
5.2.70.0040.0329.14
5.2.60.0070.0299.09
5.2.50.0050.0309.06
5.2.40.0080.0259.04
5.2.30.0100.0289.01
5.2.20.0020.0319.00
5.2.10.0060.0268.93
5.2.00.0070.0298.78
5.1.60.0040.0248.07
5.1.50.0010.0278.06
5.1.40.0040.0248.05
5.1.30.0070.0238.40
5.1.20.0070.0248.42
5.1.10.0080.0238.14
5.1.00.0060.0248.14
5.0.50.0050.0196.63
5.0.40.0030.0196.49
5.0.30.0060.0296.30
5.0.20.0030.0206.30
5.0.10.0030.0206.27
5.0.00.0030.0316.27
4.4.90.0020.0164.78
4.4.80.0030.0214.76
4.4.70.0000.0174.76
4.4.60.0020.0194.76
4.4.50.0010.0174.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0020.0184.84
4.4.10.0040.0144.85
4.4.00.0050.0234.76
4.3.110.0010.0174.66
4.3.100.0030.0144.67
4.3.90.0040.0154.63
4.3.80.0040.0274.58
4.3.70.0050.0154.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0030.0254.54
4.3.30.0010.0213.29
4.3.20.0010.0183.27
4.3.10.0030.0153.22
4.3.00.0230.0176.98

preferences:
44.54 ms | 401 KiB | 5 Q