3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = NumberFormatter::create("en-US", NumberFormatter::DEFAULT_STYLE, null); $formatter->setAttribute(NumberFormatter::FRACTION_DIGITS, 2); print $formatter->format(60.65); print "\n"; print $formatter->format("60.65"+0); 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.40.0120.00620.34
8.3.30.0130.00620.59
8.3.20.0040.00421.84
8.3.10.0030.00621.93
8.3.00.0080.00021.26
8.2.170.0090.00622.96
8.2.160.0120.00621.77
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00023.46
8.2.110.0120.00023.76
8.2.100.0100.00319.47
8.2.90.0000.00820.49
8.2.80.0000.00819.38
8.2.70.0000.00919.13
8.2.60.0080.00019.79
8.2.50.0090.00019.25
8.2.40.0040.00419.78
8.2.30.0000.00820.98
8.2.20.0060.00319.29
8.2.10.0030.00619.67
8.2.00.0000.00819.25
8.1.270.0100.00023.50
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00325.34
8.1.230.0030.00920.75
8.1.220.0040.00419.52
8.1.210.0000.00819.27
8.1.200.0060.00318.98
8.1.190.0030.00618.98
8.1.180.0000.00919.26
8.1.170.0050.00320.20
8.1.160.0050.00323.17
8.1.150.0000.00820.28
8.1.140.0040.00419.14
8.1.130.0000.00719.55
8.1.120.0080.00019.40
8.1.110.0000.00819.37
8.1.100.0040.00419.48
8.1.90.0040.00419.45
8.1.80.0040.00419.36
8.1.70.0040.00419.33
8.1.60.0100.00019.61
8.1.50.0040.00419.42
8.1.40.0040.00419.50
8.1.30.0000.00919.48
8.1.20.0000.00819.59
8.1.10.0050.00319.52
8.1.00.0000.00819.57
8.0.300.0020.00519.04
8.0.290.0090.00018.50
8.0.280.0000.00719.80
8.0.270.0040.00418.98
8.0.260.0030.00319.03
8.0.250.0040.00418.74
8.0.240.0030.00318.72
8.0.230.0050.00318.66
8.0.220.0000.00718.60
8.0.210.0000.00818.55
8.0.200.0000.00718.66
8.0.190.0000.00818.57
8.0.180.0000.00718.66
8.0.170.0000.00818.54
8.0.160.0050.00318.50
8.0.150.0050.00318.52
8.0.140.0000.00818.62
8.0.130.0050.00013.34
8.0.120.0040.00418.85
8.0.110.0000.00718.89
8.0.100.0050.00218.73
8.0.90.0000.00818.76
8.0.80.0110.00518.88
8.0.70.0000.00818.98
8.0.60.0030.00518.64
8.0.50.0040.00418.75
8.0.30.0080.01119.00
8.0.20.0120.00919.10
8.0.10.0040.00418.67
8.0.00.0110.01418.55
7.4.330.0020.00215.02
7.4.320.0060.00018.46
7.4.300.0030.00318.53
7.4.290.0000.00718.43
7.4.280.0040.00418.51
7.4.270.0040.00418.45
7.4.260.0040.00418.55
7.4.250.0080.00018.41
7.4.240.0040.00318.41
7.4.230.0000.00718.29
7.4.220.0030.01618.38
7.4.210.0100.00918.41
7.4.200.0060.00318.52
7.4.160.0090.00618.20
7.4.150.0070.01118.29
7.4.140.0140.01018.18
7.4.130.0090.01318.36
7.4.120.0090.00918.45
7.4.110.0160.00618.45
7.4.100.0080.01218.50
7.4.90.0120.00618.31
7.4.80.0130.01019.37
7.4.70.0070.01018.46
7.4.60.0090.00918.35
7.4.50.0040.00418.11
7.4.40.0100.01018.13
7.4.30.0090.00818.43
7.4.00.0070.01116.91
7.3.330.0070.00013.00
7.3.320.0030.00313.16
7.3.310.0070.00018.04
7.3.300.0070.00018.18
7.3.290.0090.00618.17
7.3.280.0070.01118.20
7.3.270.0090.00918.37
7.3.260.0060.01218.48
7.3.250.0090.01018.29
7.3.240.0070.01618.09
7.3.230.0090.00818.28
7.3.210.0100.00718.02
7.3.200.0070.01019.39
7.3.190.0040.01718.12
7.3.180.0110.00717.91
7.3.170.0070.01017.93
7.3.160.0150.00618.28
7.3.00.0120.00318.07
7.2.330.0090.00918.49
7.2.320.0070.01018.60
7.2.310.0150.00318.60
7.2.300.0100.00718.04
7.2.290.0130.01018.73
7.2.130.0070.00418.55
7.2.120.0040.01118.42
7.2.110.0040.01118.39
7.2.100.0030.01318.44
7.2.90.0060.00618.59
7.2.80.0130.00318.31
7.2.70.0090.00618.69
7.2.60.0100.00518.43
7.2.50.0060.00718.60
7.2.40.0060.00918.70
7.2.30.0070.00718.66
7.2.20.0060.00618.52
7.2.10.0110.00318.70
7.2.00.0050.00720.10
7.1.250.0000.01117.51
7.1.240.0130.00317.73
7.1.230.0070.00717.66
7.1.220.0090.00617.49
7.1.210.0140.00317.56
7.1.200.0060.00617.51
7.1.190.0040.00817.58
7.1.180.0060.00917.60
7.1.170.0070.00717.54
7.1.160.0110.00417.52
7.1.150.0100.00317.52
7.1.140.0070.00717.48
7.1.130.0100.00017.54
7.1.120.0050.00517.51
7.1.110.0060.00617.69
7.1.100.0030.00918.77
7.1.90.0040.00917.56
7.1.80.0000.01517.34
7.1.70.0000.01018.12
7.1.60.0030.01318.43
7.1.50.0100.00818.00
7.1.40.0060.00617.36
7.1.30.0000.01717.47
7.1.20.0070.00717.43
7.1.10.0030.00917.21
7.1.00.0070.03821.00
7.0.330.0060.00317.36
7.0.320.0060.00917.18
7.0.310.0000.01717.00
7.0.300.0000.01217.13
7.0.290.0000.01417.00
7.0.280.0080.00817.27
7.0.270.0000.01217.34
7.0.260.0040.00417.16
7.0.250.0030.00517.18
7.0.240.0030.00617.01
7.0.230.0040.00817.21
7.0.220.0070.00717.18
7.0.210.0070.00317.34
7.0.200.0080.00917.91
7.0.190.0000.01117.08
7.0.180.0030.00717.18
7.0.170.0040.00817.34
7.0.160.0030.01017.17
7.0.150.0060.00617.08
7.0.140.0110.03120.61
7.0.130.0070.01017.23
7.0.120.0100.00317.23
7.0.110.0070.01017.01
7.0.100.0040.01117.02
7.0.90.0060.00617.17
7.0.80.0060.00616.92
7.0.70.0120.00016.86
7.0.60.0020.04919.54
7.0.50.0060.04517.53
7.0.40.0130.02218.56
7.0.30.0080.02918.31
7.0.20.0100.02918.43
7.0.10.0050.02418.31
7.0.00.0060.02518.37
5.6.380.0060.01016.55
5.6.370.0070.00716.26
5.6.360.0100.00316.00
5.6.350.0040.01116.31
5.6.340.0030.01216.07
5.6.330.0140.00016.41
5.6.320.0030.01016.56
5.6.310.0000.01216.32
5.6.300.0030.01016.27
5.6.290.0070.00716.14
5.6.280.0000.04719.59
5.6.270.0130.00015.96
5.6.260.0110.00415.93
5.6.250.0060.00616.24
5.6.240.0040.00816.12
5.6.230.0060.00616.21
5.6.220.0070.00716.17
5.6.210.0050.04719.26
5.6.200.0080.04717.15
5.6.190.0070.03819.28
5.6.180.0130.04518.96
5.6.170.0150.03919.16
5.6.160.0040.03019.19
5.6.150.0050.02517.16
5.6.140.0120.03917.30
5.6.130.0100.03917.18
5.6.120.0070.04519.44
5.6.110.0070.04319.38
5.6.100.0120.03019.58
5.6.90.0050.02919.38
5.6.80.0120.03919.19
5.6.70.0070.00415.98
5.6.60.0000.01116.36
5.6.50.0070.00416.30
5.6.40.0030.00715.75
5.6.30.0090.00316.04
5.6.20.0000.01316.08
5.6.10.0000.00815.89
5.6.00.0030.00716.26
5.5.380.0060.00610.77
5.5.370.0070.00710.66
5.5.360.0060.00610.92
5.5.350.0120.03916.47
5.5.340.0120.03914.36
5.5.330.0080.03116.30
5.5.320.0220.03816.42
5.5.310.0150.01816.19
5.5.300.0070.04214.50
5.5.290.0090.02114.40
5.5.280.0100.02916.83
5.5.270.0020.02516.73
5.5.260.0050.04516.65
5.5.250.0070.02616.74
5.5.240.0080.01616.44
5.5.230.0000.01210.65
5.5.220.0000.00810.61
5.5.210.0000.00910.81
5.5.200.0040.00411.04
5.5.190.0000.00910.73
5.5.180.0030.00610.89
5.5.170.0030.00310.89
5.5.160.0040.00410.90
5.5.150.0040.00410.65
5.5.140.0000.00610.69
5.5.130.0060.00310.75
5.5.120.0000.00810.69
5.5.110.0000.01110.92
5.5.100.0030.00310.64
5.5.90.0100.00011.10
5.5.80.0030.00610.84
5.5.70.0040.00710.93
5.5.60.0000.00810.71
5.5.50.0000.00810.62
5.5.40.0060.00310.58
5.5.30.0000.00810.65
5.5.20.0030.00911.00
5.5.10.0060.00010.63
5.5.00.0090.00010.80
5.4.450.0050.01715.81
5.4.440.0530.02616.03
5.4.430.0430.03015.87
5.4.420.0400.00015.88
5.4.410.0440.00215.93
5.4.400.0450.00315.82
5.4.390.0400.00415.90
5.4.380.0200.03415.70
5.4.370.0220.03015.52
5.4.360.0280.03715.41
5.4.350.0200.03015.68
5.4.340.0170.03615.54
5.4.330.0070.00310.39
5.4.320.0050.02011.50
5.4.310.0070.02011.54
5.4.300.0070.02011.59
5.4.290.0040.02411.67
5.4.280.0020.02611.57
5.4.270.0050.02411.49
5.4.260.0040.02211.48
5.4.250.0060.02211.35
5.4.240.0020.02211.35
5.4.230.0060.01911.41
5.4.220.0030.02211.48
5.4.210.0040.02011.52
5.4.200.0020.02411.50
5.4.190.0070.02111.37
5.4.180.0060.02211.61
5.4.170.0020.02511.45
5.4.160.0030.02311.36
5.4.150.0050.01911.47
5.4.140.0080.01911.32
5.4.130.0100.02111.22
5.4.120.0030.02211.40
5.4.110.0050.02211.27
5.4.100.0030.02211.36
5.4.90.0040.02111.23
5.4.80.0030.02211.26
5.4.70.0060.01811.34
5.4.60.0060.02011.17
5.4.50.0040.02211.35
5.4.40.0020.02211.19
5.4.30.0030.02111.43
5.4.20.0070.01711.36
5.4.10.0020.02111.30
5.4.00.0090.01911.04
5.3.290.0040.02211.55
5.3.280.0050.02211.41
5.3.270.0040.02311.52
5.3.260.0040.02211.36
5.3.250.0020.02711.46
5.3.240.0050.02011.42
5.3.230.0020.02311.36
5.3.220.0060.02311.40
5.3.210.0050.02311.34
5.3.200.0080.02111.45
5.3.190.0050.02211.43
5.3.180.0060.02011.56
5.3.170.0070.01811.52
5.3.160.0040.02111.52
5.3.150.0030.02411.49
5.3.140.0060.02211.54
5.3.130.0040.02311.46
5.3.120.0050.02011.39
5.3.110.0050.02011.52
5.3.100.0070.02311.21
5.3.90.0050.01911.24
5.3.80.0030.02111.22
5.3.70.0040.02011.07
5.3.60.0060.01811.14
5.3.50.0050.01911.09
5.3.40.0070.02011.09
5.3.30.0030.02011.04
5.3.20.0060.02211.02
5.3.10.0040.02010.82
5.3.00.0040.02410.82
5.2.170.0020.0199.57
5.2.160.0030.0199.57
5.2.150.0060.0179.57
5.2.140.0020.0179.57
5.2.130.0050.0169.55
5.2.120.0040.0149.55
5.2.110.0050.0159.55
5.2.100.0030.0169.55
5.2.90.0020.0219.55
5.2.80.0020.0179.55
5.2.70.0050.0209.55
5.2.60.0020.0219.53
5.2.50.0040.0219.51
5.2.40.0020.0189.50
5.2.30.0070.0159.49
5.2.20.0050.0149.48
5.2.10.0040.0209.44
5.2.00.0020.0209.37
5.1.60.0040.0139.01
5.1.50.0030.0169.01
5.1.40.0050.0149.00
5.1.30.0060.0189.18
5.1.20.0030.0169.19
5.1.10.0030.0199.05
5.1.00.0050.0179.05
5.0.50.0040.0128.29
5.0.40.0040.0128.22
5.0.30.0030.0188.13
5.0.20.0050.0098.13
5.0.10.0020.0128.12
5.0.00.0030.0198.12
4.4.90.0020.0137.37
4.4.80.0030.0127.36
4.4.70.0030.0077.36
4.4.60.0020.0117.36
4.4.50.0020.0117.37
4.4.40.0020.0157.33
4.4.30.0030.0097.36
4.4.20.0020.0127.40
4.4.10.0010.0107.40
4.4.00.0040.0127.36
4.3.110.0020.0107.31
4.3.100.0020.0087.31
4.3.90.0010.0117.30
4.3.80.0020.0167.27
4.3.70.0020.0097.29
4.3.60.0030.0097.29
4.3.50.0020.0107.29
4.3.40.0020.0147.25
4.3.30.0010.0126.62
4.3.20.0010.0116.61
4.3.10.0030.0096.59
4.3.00.0020.00912.79

preferences:
45.31 ms | 400 KiB | 5 Q