3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('nice_number')) { function nice_number($n) { // first strip any formatting; $n = (0 + str_replace(",", "", $n)); // is this a number? if (!is_numeric($n)) return false; // now filter it; if ($n > 1000000000000) return round(($n / 1000000000000), 2) . ' tn'; else if ($n > 1000000000) return round(($n / 1000000000), 2) . ' bn'; else if ($n > 1000000) return round(($n / 1000000), 2) . ' mn'; else if ($n > 1000) return round(($n / 1000), 2) . ' K'; return number_format($n); } } echo nice_number(300200000);

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.0190.00318.30
8.3.50.0090.00822.01
8.3.40.0150.00018.64
8.3.30.0070.00719.04
8.3.20.0040.00420.05
8.3.10.0070.00022.22
8.3.00.0080.00022.46
8.2.180.0170.00317.90
8.2.170.0080.00622.96
8.2.160.0070.00720.82
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00319.61
8.2.110.0110.00020.64
8.2.100.0090.00318.03
8.2.90.0000.00819.11
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0040.00418.03
8.2.50.0030.00518.07
8.2.40.0040.00418.22
8.2.30.0040.00418.13
8.2.20.0040.00417.84
8.2.10.0050.00219.47
8.2.00.0000.00717.86
8.1.280.0100.01025.92
8.1.270.0040.00422.31
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00320.87
8.1.230.0110.00017.57
8.1.220.0030.00617.78
8.1.210.0030.00518.77
8.1.200.0000.01017.35
8.1.190.0000.00817.40
8.1.180.0000.00818.10
8.1.170.0000.00918.71
8.1.160.0000.00822.00
8.1.150.0040.00418.76
8.1.140.0030.00617.52
8.1.130.0030.00317.79
8.1.120.0000.00717.56
8.1.110.0000.00817.52
8.1.100.0040.00317.42
8.1.90.0000.00717.39
8.1.80.0000.00817.54
8.1.70.0040.00417.42
8.1.60.0030.00617.64
8.1.50.0040.00417.63
8.1.40.0040.00417.59
8.1.30.0050.00317.67
8.1.20.0090.00017.63
8.1.10.0040.00417.59
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00518.55
8.0.270.0040.00416.90
8.0.260.0040.00417.02
8.0.250.0000.00716.98
8.0.240.0030.00417.09
8.0.230.0030.00316.99
8.0.220.0000.00817.04
8.0.210.0000.00817.00
8.0.200.0040.00517.04
8.0.190.0040.00417.12
8.0.180.0000.00717.03
8.0.170.0080.00017.02
8.0.160.0000.00816.99
8.0.150.0070.00016.92
8.0.140.0000.00816.87
8.0.130.0080.00013.48
8.0.120.0050.00516.88
8.0.110.0040.00417.01
8.0.100.0000.00717.13
8.0.90.0070.00016.84
8.0.80.0090.01216.98
8.0.70.0070.00016.84
8.0.60.0080.00016.90
8.0.50.0090.00016.89
8.0.30.0120.00917.21
8.0.20.0050.01217.40
8.0.10.0040.00417.18
8.0.00.0130.00516.84
7.4.330.0030.00315.15
7.4.320.0000.00616.69
7.4.300.0030.00316.58
7.4.290.0030.00316.43
7.4.280.0030.00316.65
7.4.270.0030.00316.68
7.4.260.0000.00916.52
7.4.250.0000.00716.63
7.4.240.0040.00316.64
7.4.230.0030.00316.77
7.4.220.0120.00916.59
7.4.210.0060.01116.53
7.4.200.0000.00816.72
7.4.190.0050.00316.51
7.4.160.0030.01416.43
7.4.150.0060.01217.40
7.4.140.0130.00517.86
7.4.130.0110.00916.65
7.4.120.0140.00316.62
7.4.110.0070.01016.46
7.4.100.0090.00916.66
7.4.90.0070.01416.65
7.4.80.0060.01019.39
7.4.70.0090.00616.47
7.4.60.0060.01116.52
7.4.50.0040.00016.53
7.4.40.0060.00922.77
7.4.30.0080.00816.60
7.4.00.0050.01114.76
7.3.330.0000.00513.42
7.3.320.0050.00013.23
7.3.310.0040.00416.48
7.3.300.0000.00716.37
7.3.290.0120.00316.39
7.3.280.0070.01116.39
7.3.270.0100.00717.40
7.3.260.0070.01716.42
7.3.250.0100.00716.50
7.3.240.0070.01016.60
7.3.230.0090.01016.69
7.3.210.0060.01116.57
7.3.200.0000.01516.34
7.3.190.0060.01016.64
7.3.180.0080.00816.44
7.3.170.0110.00516.51
7.3.160.0060.00916.49
7.3.120.0030.01114.94
7.3.110.0060.00915.02
7.3.100.0070.00714.51
7.3.90.0060.00915.09
7.3.80.0090.00614.68
7.3.70.0080.00814.77
7.3.60.0070.00715.02
7.3.50.0000.01614.86
7.3.40.0060.00914.84
7.3.30.0060.00314.99
7.3.20.0040.01116.64
7.3.10.0080.00816.55
7.3.00.0040.01116.53
7.2.330.0150.00616.81
7.2.320.0150.00616.50
7.2.310.0110.00616.43
7.2.300.0110.00816.85
7.2.290.0040.01116.77
7.2.250.0100.01015.30
7.2.240.0140.00315.20
7.2.230.0040.01415.27
7.2.220.0130.00314.97
7.2.210.0070.01114.85
7.2.200.0040.01115.05
7.2.190.0070.00714.79
7.2.180.0070.01015.25
7.2.170.0030.00914.86
7.2.60.0070.00716.84
7.2.00.0040.01119.45
7.1.330.0100.00315.94
7.1.320.0070.00715.77
7.1.310.0100.00716.05
7.1.300.0070.01015.59
7.1.290.0080.00315.63
7.1.280.0000.01615.59
7.1.270.0040.00415.63
7.1.260.0070.01015.86
7.1.200.0000.01015.79
7.1.100.0030.01017.66
7.1.70.0000.01016.93
7.1.60.0140.01019.82
7.1.50.0030.01917.07
7.1.00.0070.07322.48
7.0.200.0120.00616.72
7.0.140.0070.07022.12
7.0.60.0070.06320.02
7.0.50.0070.08017.89
7.0.40.0130.07720.30
7.0.30.0330.04320.07
7.0.20.0370.06320.14
7.0.10.0070.04320.21
7.0.00.0100.07720.22
5.6.280.0000.07721.08
5.6.210.0100.07020.47
5.6.200.0130.07318.20
5.6.190.0100.04720.63
5.6.180.0400.04720.48
5.6.170.0300.06320.61
5.6.160.0100.08320.60
5.6.150.0030.04018.11
5.6.140.0100.03718.28
5.6.130.0130.07718.20
5.6.120.0030.04720.88
5.6.110.0100.08321.13
5.6.100.0170.03721.00
5.6.90.0100.07721.08
5.6.80.0070.08020.37
5.5.350.0200.08320.50
5.5.340.0070.05018.00
5.5.330.0000.09320.30
5.5.320.0030.05320.51
5.5.310.0300.06320.25
5.5.300.0100.03318.08
5.5.290.0030.05718.07
5.5.280.0030.04020.89
5.5.270.0100.03720.73
5.5.260.0000.05020.89
5.5.250.0170.06720.50
5.5.240.0170.03320.28
5.4.450.0730.04719.41
5.4.440.0070.03019.39
5.4.430.0530.03719.55
5.4.420.0730.05019.50
5.4.410.0500.04019.45
5.4.400.0230.03718.98
5.4.390.0200.06019.23
5.4.380.0300.05718.63
5.4.370.0400.07018.61
5.4.360.0430.04718.79
5.4.350.0330.06318.70
5.4.340.0330.05718.63
5.4.320.0040.03912.51
5.4.310.0080.04512.51
5.4.300.0060.03712.51
5.4.290.0040.05012.50
5.4.280.0040.03612.40
5.4.270.0070.03512.37
5.4.260.0050.03812.37
5.4.250.0090.03412.37
5.4.240.0090.03512.37
5.4.230.0050.04212.36
5.4.220.0060.03612.36
5.4.210.0050.03712.37
5.4.200.0070.03712.36
5.4.190.0090.03612.36
5.4.180.0070.03612.36
5.4.170.0060.03612.38
5.4.160.0060.03612.36
5.4.150.0040.03812.36
5.4.140.0060.03612.05
5.4.130.0030.03812.03
5.4.120.0080.03411.99
5.4.110.0090.03311.98
5.4.100.0060.04411.98
5.4.90.0070.03711.98
5.4.80.0050.03811.99
5.4.70.0070.03411.98
5.4.60.0070.03511.98
5.4.50.0050.03711.98
5.4.40.0100.03911.96
5.4.30.0080.03611.96
5.4.20.0100.03311.97
5.4.10.0080.03411.97
5.4.00.0100.03311.46
5.3.290.0110.03412.80
5.3.280.0090.04112.71
5.3.270.0050.04212.72
5.3.260.0070.03812.72
5.3.250.0050.04212.72
5.3.240.0070.03612.72
5.3.230.0080.04012.71
5.3.220.0090.04012.68
5.3.210.0060.04112.68
5.3.200.0060.03712.68
5.3.190.0050.03812.68
5.3.180.0070.03612.67
5.3.170.0100.03212.66
5.3.160.0040.03812.67
5.3.150.0110.03112.68
5.3.140.0060.03612.66
5.3.130.0070.03812.66
5.3.120.0050.04012.66
5.3.110.0130.03312.66
5.3.100.0070.03712.12
5.3.90.0070.03912.08
5.3.80.0040.03812.08
5.3.70.0100.03212.07
5.3.60.0070.03612.07
5.3.50.0110.04212.00
5.3.40.0060.03812.00
5.3.30.0030.03811.96
5.3.20.0050.03711.74
5.3.10.0050.04111.70
5.3.00.0060.03911.69
5.2.170.0040.0319.20
5.2.160.0060.0279.20
5.2.150.0050.0369.20
5.2.140.0050.0319.20
5.2.130.0060.0399.16
5.2.120.0060.0299.15
5.2.110.0060.0309.16
5.2.100.0060.0279.17
5.2.90.0060.0339.16
5.2.80.0030.0349.15
5.2.70.0040.0319.15
5.2.60.0040.0329.10
5.2.50.0050.0319.07
5.2.40.0030.0319.05
5.2.30.0050.0319.03
5.2.20.0050.0299.02
5.2.10.0050.0288.95
5.2.00.0040.0318.80
5.1.60.0060.0318.09
5.1.50.0050.0278.08
5.1.40.0090.0228.07
5.1.30.0040.0278.42
5.1.20.0060.0258.45
5.1.10.0060.0258.16
5.1.00.0030.0268.16
5.0.50.0030.0226.66
5.0.40.0030.0196.51
5.0.30.0040.0316.33
5.0.20.0040.0206.30
5.0.10.0040.0196.28
5.0.00.0060.0306.27
4.4.90.0030.0164.78
4.4.80.0030.0184.75
4.4.70.0010.0184.75
4.4.60.0030.0184.75
4.4.50.0020.0184.77
4.4.40.0040.0244.70
4.4.30.0040.0144.76
4.4.20.0020.0164.85
4.4.10.0040.0154.85
4.4.00.0040.0244.76
4.3.110.0040.0154.66
4.3.100.0020.0164.67
4.3.90.0020.0154.63
4.3.80.0040.0244.59
4.3.70.0030.0164.63
4.3.60.0010.0174.63
4.3.50.0030.0164.63
4.3.40.0020.0274.53
4.3.30.0020.0173.33
4.3.20.0060.0133.31
4.3.10.0000.0183.28
4.3.00.0070.01013.27

preferences:
45.98 ms | 401 KiB | 5 Q