3v4l.org

run code in 300+ PHP versions simultaneously
<?php $campaignIds = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17); $limit=3; $blocksCount = count($campaignIds) / $limit;echo $blocksCount.PHP_EOL; for ($i = 0; $i < $blocksCount; $i++) {echo $i.' - '. $blocksCount * $i .PHP_EOL; print_r((array_slice($campaignIds, $blocksCount * $i, $limit))); }

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.00018.55
8.3.50.0150.00622.04
8.3.40.0110.00418.54
8.3.30.0140.00019.09
8.3.20.0040.00420.39
8.3.10.0080.00020.52
8.3.00.0080.00019.25
8.2.180.0110.00716.63
8.2.170.0110.00322.96
8.2.160.0140.00320.47
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.97
8.2.110.0060.00320.53
8.2.100.0110.00417.97
8.2.90.0040.00419.21
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0000.00817.80
8.2.50.0060.00618.07
8.2.40.0080.00019.91
8.2.30.0030.00518.01
8.2.20.0070.00017.57
8.2.10.0070.00018.13
8.2.00.0020.00517.63
8.1.280.0120.00625.92
8.1.270.0080.00023.78
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.75
8.1.230.0100.00019.16
8.1.220.0030.00617.79
8.1.210.0080.00018.77
8.1.200.0090.00017.35
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0000.00818.48
8.1.160.0070.00021.97
8.1.150.0000.00718.95
8.1.140.0000.00717.51
8.1.130.0070.00317.67
8.1.120.0000.00717.38
8.1.110.0070.00017.45
8.1.100.0040.00417.35
8.1.90.0000.00717.47
8.1.80.0000.00817.46
8.1.70.0070.00017.46
8.1.60.0050.00317.59
8.1.50.0080.00017.53
8.1.40.0040.00417.52
8.1.30.0000.00817.56
8.1.20.0040.00417.69
8.1.10.0000.00817.39
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0000.00717.27
8.0.260.0030.00317.22
8.0.250.0000.00716.83
8.0.240.0060.00016.87
8.0.230.0030.00316.98
8.0.220.0030.00316.89
8.0.210.0040.00416.87
8.0.200.0000.00816.85
8.0.190.0040.00416.97
8.0.180.0000.00716.84
8.0.170.0060.00316.96
8.0.160.0000.00716.95
8.0.150.0000.00716.84
8.0.140.0040.00416.76
8.0.130.0000.00613.36
8.0.120.0000.00716.86
8.0.110.0000.00716.94
8.0.100.0030.00516.95
8.0.90.0040.00416.91
8.0.80.0080.00816.86
8.0.70.0040.00416.68
8.0.60.0070.00016.71
8.0.50.0040.00416.88
8.0.30.0080.01016.89
8.0.20.0170.00517.40
8.0.10.0000.00717.04
8.0.00.0120.00616.64
7.4.330.0000.00515.00
7.4.320.0000.00616.54
7.4.300.0000.00716.52
7.4.290.0030.00316.53
7.4.280.0090.00416.50
7.4.270.0050.00316.43
7.4.260.0040.00416.59
7.4.250.0050.00216.51
7.4.240.0020.00516.56
7.4.230.0070.00016.34
7.4.220.0120.00316.67
7.4.210.0100.00416.50
7.4.200.0030.00316.61
7.4.160.0150.00816.52
7.4.150.0150.00417.40
7.4.140.0110.00617.86
7.4.130.0120.00516.39
7.4.120.0050.01316.60
7.4.110.0130.00316.51
7.4.100.0030.01916.67
7.4.90.0100.00816.35
7.4.80.0150.00919.39
7.4.70.0170.00016.37
7.4.60.0060.01216.52
7.4.50.0000.00916.63
7.4.40.0090.00916.52
7.4.30.0030.01316.28
7.4.00.0090.00614.91
7.3.330.0020.00213.05
7.3.320.0050.00013.26
7.3.310.0000.00716.41
7.3.300.0000.00716.22
7.3.290.0050.00916.37
7.3.280.0090.00716.31
7.3.270.0090.00917.40
7.3.260.0110.00616.50
7.3.250.0110.00616.44
7.3.240.0060.01216.35
7.3.230.0110.01116.54
7.3.210.0170.00716.63
7.3.200.0080.00819.39
7.3.190.0100.00716.60
7.3.180.0120.00916.35
7.3.170.0060.01016.35
7.3.160.0030.01416.57
7.3.10.0270.00416.21
7.3.00.0210.00916.08
7.2.330.0130.00316.27
7.2.320.0090.00916.70
7.2.310.0210.01616.84
7.2.300.0110.00616.34
7.2.290.0030.01316.73
7.2.130.0250.00416.83
7.2.120.0220.00316.47
7.2.110.0120.01216.16
7.2.100.0190.00316.76
7.2.90.0160.01216.73
7.2.80.0180.00316.29
7.2.70.0090.00916.21
7.2.60.0080.00816.90
7.2.50.0190.00316.55
7.2.40.0080.01516.44
7.2.30.0110.00916.96
7.2.20.0170.00516.48
7.2.10.0120.00316.82
7.2.00.0140.00718.08
7.1.250.0140.00615.42
7.1.200.0050.00515.92
7.1.100.1000.00716.26
7.1.70.0000.00817.11
7.1.60.0070.01619.32
7.1.50.0070.00716.92
7.1.00.0100.07022.34
7.0.200.0080.00316.88
7.0.140.0030.07321.99
7.0.60.0130.07320.05
7.0.50.0030.05017.84
7.0.40.0070.05020.18
7.0.30.0200.03720.20
7.0.20.0230.07320.20
7.0.10.0070.06720.30
7.0.00.0070.08320.09
5.6.280.0130.06021.10
5.6.210.0100.07320.53
5.6.200.0000.05318.19
5.6.190.0000.05320.63
5.6.180.0270.05020.50
5.6.170.0370.07720.48
5.6.160.0100.08020.54
5.6.150.0070.07018.18
5.6.140.0070.08318.14
5.6.130.0130.07018.11
5.6.120.0070.06020.95
5.6.110.0130.05020.99
5.6.100.0170.04720.97
5.6.90.0130.08721.02
5.6.80.0000.07320.43
5.5.350.0200.08020.52
5.5.340.0070.07018.07
5.5.330.0030.05320.40
5.5.320.0430.04320.39
5.5.310.0270.08320.18
5.5.300.0100.04317.98
5.5.290.0130.04317.95
5.5.280.0000.05720.87
5.5.270.0200.03720.85
5.5.260.0130.08020.86
5.5.250.0100.04020.79
5.5.240.0230.08020.33
5.4.450.0730.03319.30
5.4.440.0630.03719.59
5.4.430.0530.04319.30
5.4.420.0630.00019.48
5.4.410.0630.00019.36
5.4.400.0630.00019.27
5.4.390.0600.00019.02
5.4.380.0630.00019.06
5.4.370.0600.00018.98
5.4.360.0600.00019.06
5.4.350.0630.00019.02
5.4.340.0600.00019.16
5.4.320.0090.03412.49
5.4.310.0020.04612.48
5.4.300.0040.03812.49
5.4.290.0050.03912.48
5.4.280.0070.03512.38
5.4.270.0040.03812.38
5.4.260.0070.03712.38
5.4.250.0040.04012.38
5.4.240.0040.03912.38
5.4.230.0070.03712.38
5.4.220.0050.03712.37
5.4.210.0100.03612.38
5.4.200.0070.04212.38
5.4.190.0070.03812.37
5.4.180.0060.03612.37
5.4.170.0070.03512.38
5.4.160.0050.03712.38
5.4.150.0080.03512.38
5.4.140.0060.03812.05
5.4.130.0080.03412.05
5.4.120.0050.03712.00
5.4.110.0080.03512.00
5.4.100.0050.03712.00
5.4.90.0090.03612.00
5.4.80.0090.03712.00
5.4.70.0070.04012.00
5.4.60.0090.03212.00
5.4.50.0060.03512.00
5.4.40.0040.03611.98
5.4.30.0080.03711.98
5.4.20.0060.03611.98
5.4.10.0080.03511.98
5.4.00.0030.04011.47
5.3.290.0110.03512.80
5.3.280.0060.03812.71
5.3.270.0060.04412.73
5.3.260.0070.03812.72
5.3.250.0040.04112.72
5.3.240.0040.04612.72
5.3.230.0040.04012.71
5.3.220.0060.03812.68
5.3.210.0060.04012.68
5.3.200.0080.04312.68
5.3.190.0070.05012.67
5.3.180.0060.04412.67
5.3.170.0070.03712.67
5.3.160.0090.03412.67
5.3.150.0120.03612.67
5.3.140.0100.03712.66
5.3.130.0060.04012.66
5.3.120.0080.04012.66
5.3.110.0060.03912.66
5.3.100.0060.03812.12
5.3.90.0060.03712.09
5.3.80.0090.03512.08
5.3.70.0070.03512.09
5.3.60.0050.03712.07
5.3.50.0070.03512.02
5.3.40.0070.03512.02
5.3.30.0050.03611.98
5.3.20.0040.03711.76
5.3.10.0060.03411.72
5.3.00.0090.04111.71
5.2.170.0070.0399.21
5.2.160.0040.0349.21
5.2.150.0090.0269.21
5.2.140.0050.0339.21
5.2.130.0030.0339.17
5.2.120.0040.0299.17
5.2.110.0050.0289.18
5.2.100.0070.0269.17
5.2.90.0060.0279.17
5.2.80.0090.0279.16
5.2.70.0060.0299.17
5.2.60.0010.0349.12
5.2.50.0050.0329.09
5.2.40.0040.0319.06
5.2.30.0050.0309.04
5.2.20.0060.0299.03
5.2.10.0070.0268.95
5.2.00.0050.0298.82
5.1.60.0040.0268.10
5.1.50.0020.0288.09
5.1.40.0060.0348.08
5.1.30.0060.0268.43
5.1.20.0020.0298.45
5.1.10.0040.0268.17
5.1.00.0050.0258.17
5.0.50.0030.0216.66
5.0.40.0040.0266.52
5.0.30.0050.0366.34
5.0.20.0010.0236.30
5.0.10.0010.0236.28
5.0.00.0040.0376.27
4.4.90.0030.0164.78
4.4.80.0010.0214.75
4.4.70.0050.0134.76
4.4.60.0020.0204.75
4.4.50.0020.0164.77
4.4.40.0030.0324.71
4.4.30.0030.0214.76
4.4.20.0020.0164.85
4.4.10.0000.0224.85
4.4.00.0030.0294.76
4.3.110.0040.0204.67
4.3.100.0020.0154.66
4.3.90.0040.0204.63
4.3.80.0000.0314.59
4.3.70.0030.0154.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0040.0274.53
4.3.30.0020.0163.32
4.3.20.0030.0223.30
4.3.10.0020.0193.26
4.3.00.0070.01313.42

preferences:
43.35 ms | 401 KiB | 5 Q