3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rand = range(0, 50); shuffle($rand); $rand2 = range(0, 50); shuffle($rand2); $arr = array_combine($rand, $rand2); foreach(array_filter($arr,function($v,$k){ return $k <= 15 && $k >= 10; },1) as $key => $value) { echo "$key: $value\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)
7.4.00.0000.01914.67
7.3.120.0090.00615.10
7.3.110.0070.00714.81
7.3.100.0000.01314.39
7.3.90.0000.00815.01
7.3.80.0060.00914.59
7.3.70.0100.00714.85
7.3.60.0090.00614.68
7.3.50.0040.00414.84
7.3.40.0090.00614.43
7.3.30.0000.01014.86
7.3.20.0110.00416.80
7.3.10.0000.01516.39
7.3.00.0040.00816.33
7.2.250.0090.00915.22
7.2.240.0070.01314.74
7.2.230.0040.01114.99
7.2.220.0030.00915.32
7.2.210.0090.00915.19
7.2.200.0040.01115.14
7.2.190.0040.01215.16
7.2.180.0000.01515.21
7.2.170.0000.01215.06
7.2.160.0100.00314.96
7.2.150.0100.00317.03
7.2.140.0030.01016.99
7.2.130.0070.00716.66
7.2.120.0090.00316.77
7.2.110.0030.00616.85
7.2.100.0000.01317.02
7.2.90.0070.01016.71
7.2.80.0140.00016.83
7.2.70.0070.01117.16
7.2.60.0030.00817.11
7.2.50.0030.01017.04
7.2.40.0070.01017.09
7.2.30.0080.00016.97
7.2.20.0030.00517.12
7.2.10.0040.00416.89
7.2.00.0030.00918.21
7.1.330.0040.01216.03
7.1.320.0040.00715.95
7.1.310.0090.00915.73
7.1.300.0060.00615.82
7.1.290.0070.00715.73
7.1.280.0060.00315.75
7.1.270.0040.00815.96
7.1.260.0000.01415.80
7.1.250.0030.01015.61
7.1.70.0040.00817.27
7.1.60.0180.00719.46
7.1.50.0030.01016.89
7.1.00.0030.07722.43
7.0.200.0040.00416.82
7.0.140.0130.06022.05
7.0.60.0100.06720.01
7.0.50.0030.05017.83
7.0.40.0030.08720.35
7.0.30.0270.05020.06
7.0.20.0230.05020.24
7.0.10.0030.08720.13
7.0.00.0130.08020.22
5.6.210.0100.03720.63
5.6.200.0070.06018.19
5.6.190.0100.09020.51
5.6.180.4070.04720.42
5.6.170.0330.07720.51
5.6.160.0000.08720.61
5.6.150.0100.07718.12
5.6.140.0100.07018.13
5.6.130.0070.03718.11
5.6.120.0100.04020.78
5.6.110.0130.08021.02
5.6.100.0000.09021.14
5.6.90.0100.07320.88
5.6.80.0100.08020.35
5.5.350.0230.07720.38
5.5.340.0100.07718.02
5.5.330.0000.07020.19
5.5.320.0370.07320.42
5.5.310.0300.07020.24
5.5.300.0100.07017.99
5.5.290.0100.08017.93
5.5.280.0130.08020.80
5.5.270.0300.07720.92
5.5.260.0030.06020.76
5.5.250.0100.05020.71
5.5.240.0170.05020.27
5.4.450.0230.04719.28
5.4.440.0100.05019.47
5.4.430.0170.04719.54
5.4.420.0270.02719.16
5.4.410.0270.04319.26
5.4.400.0000.03719.23
5.4.390.0230.03719.09
5.4.380.0430.06318.74
5.4.370.0430.04718.50
5.4.360.0330.05718.48
5.4.350.0370.05318.48
5.4.340.0270.05018.77
5.4.320.0050.03812.52
5.4.310.0060.03812.52
5.4.300.0050.03712.52
5.4.290.0030.04412.51
5.4.280.0070.03312.41
5.4.270.0050.03612.41
5.4.260.0060.04012.41
5.4.250.0060.03712.41
5.4.240.0050.03612.41
5.4.230.0060.03712.40
5.4.220.0060.03612.40
5.4.210.0060.03512.40
5.4.200.0070.03512.40
5.4.190.0060.03512.39
5.4.180.0070.03412.40
5.4.170.0070.04112.41
5.4.160.0020.03812.41
5.4.150.0080.03312.41
5.4.140.0060.03712.09
5.4.130.0060.03612.07
5.4.120.0100.03912.03
5.4.110.0050.03812.03
5.4.100.0070.03812.03
5.4.90.0070.04112.03
5.4.80.0030.04012.03
5.4.70.0050.03512.03
5.4.60.0060.03412.02
5.4.50.0070.03612.02
5.4.40.0090.03012.01
5.4.30.0040.03512.01
5.4.20.0040.04212.01
5.4.10.0030.03612.01
5.4.00.0070.03611.50
5.3.290.0070.03912.80
5.3.280.0060.03812.71
5.3.270.0050.03912.72
5.3.260.0060.04312.72
5.3.250.0050.03912.72
5.3.240.0090.03512.72
5.3.230.0080.04412.71
5.3.220.0050.03812.68
5.3.210.0080.03712.68
5.3.200.0080.03412.68
5.3.190.0060.03812.68
5.3.180.0060.03712.67
5.3.170.0050.03612.67
5.3.160.0070.03512.67
5.3.150.0080.03712.68
5.3.140.0060.03812.66
5.3.130.0080.03512.66
5.3.120.0040.04212.66
5.3.110.0050.04012.66
5.3.100.0050.03812.13
5.3.90.0100.03112.12
5.3.80.0040.03712.11
5.3.70.0040.03712.11
5.3.60.0040.03812.09
5.3.50.0030.04012.04
5.3.40.0070.03612.04
5.3.30.0070.03612.00
5.3.20.0090.03611.78
5.3.10.0040.03811.74
5.3.00.0080.03411.73
5.2.170.0060.0289.19
5.2.160.0050.0359.19
5.2.150.0070.0279.18
5.2.140.0060.0309.18
5.2.130.0030.0299.14
5.2.120.0050.0289.14
5.2.110.0050.0279.15
5.2.100.0040.0289.14
5.2.90.0050.0289.14
5.2.80.0050.0289.14
5.2.70.0050.0379.14
5.2.60.0050.0309.09
5.2.50.0060.0289.06
5.2.40.0050.0309.04
5.2.30.0030.0319.02
5.2.20.0080.0249.00
5.2.10.0070.0258.93
5.2.00.0030.0308.78
5.1.60.0030.0248.07
5.1.50.0030.0248.07
5.1.40.0050.0268.05
5.1.30.0040.0258.40
5.1.20.0060.0258.42
5.1.10.0090.0238.14
5.1.00.0040.0258.14
5.0.50.0010.0236.63
5.0.40.0020.0206.48
5.0.30.0050.0316.29
5.0.20.0040.0256.26
5.0.10.0030.0226.25
5.0.00.0030.0376.24
4.4.90.0010.0164.78
4.4.80.0010.0164.75
4.4.70.0020.0164.76
4.4.60.0040.0144.76
4.4.50.0040.0134.77
4.4.40.0030.0294.71
4.4.30.0020.0174.76
4.4.20.0030.0164.84
4.4.10.0020.0154.85
4.4.00.0030.0254.76
4.3.110.0010.0174.67
4.3.100.0050.0124.66
4.3.90.0030.0134.63
4.3.80.0030.0234.58
4.3.70.0030.0154.63
4.3.60.0030.0144.63
4.3.50.0040.0164.63
4.3.40.0070.0194.54
4.3.30.0010.0173.29
4.3.20.0000.0183.26
4.3.10.0000.0163.23
4.3.00.0070.02018.41

preferences:
47.88 ms | 401 KiB | 5 Q