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 = ceil(count($campaignIds) / $limit); for ($i = 0; $i < $blocksCount; $i++) {echo ($limit * $i) .PHP_EOL; print_r((array_slice($campaignIds, $limit * $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.0120.00918.15
8.3.50.0130.00821.99
8.3.40.0070.01518.60
8.3.30.0100.00319.14
8.3.20.0040.00420.38
8.3.10.0080.00020.48
8.3.00.0090.00019.25
8.2.180.0100.00716.32
8.2.170.0140.00322.96
8.2.160.0100.00320.40
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00722.20
8.2.110.0090.00020.47
8.2.100.0060.00618.06
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0030.00518.03
8.2.50.0000.00818.07
8.2.40.0090.00019.94
8.2.30.0020.00518.17
8.2.20.0040.00417.80
8.2.10.0040.00418.09
8.2.00.0080.00017.86
8.1.280.0090.00925.92
8.1.270.0000.00823.95
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00624.04
8.1.230.0100.00019.13
8.1.220.0030.00517.78
8.1.210.0060.00318.77
8.1.200.0090.00317.35
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0060.00318.52
8.1.160.0040.00422.12
8.1.150.0070.00018.82
8.1.140.0000.00717.61
8.1.130.0030.00317.89
8.1.120.0030.00317.55
8.1.110.0040.00417.57
8.1.100.0030.00317.52
8.1.90.0070.00017.54
8.1.80.0030.00417.57
8.1.70.0000.00717.46
8.1.60.0040.00417.70
8.1.50.0030.00517.57
8.1.40.0000.00817.63
8.1.30.0060.00317.68
8.1.20.0040.00417.71
8.1.10.0040.00417.50
8.1.00.0050.00317.57
8.0.300.0000.00718.77
8.0.290.0000.01016.75
8.0.280.0070.00018.61
8.0.270.0000.00717.31
8.0.260.0030.00317.37
8.0.250.0070.00016.97
8.0.240.0060.00016.90
8.0.230.0000.00716.98
8.0.220.0040.00416.84
8.0.210.0070.00316.84
8.0.200.0000.00617.03
8.0.190.0000.00716.97
8.0.180.0070.00017.03
8.0.170.0080.00016.96
8.0.160.0040.00416.95
8.0.150.0040.00416.89
8.0.140.0040.00416.81
8.0.130.0030.00313.34
8.0.120.0080.00016.80
8.0.110.0000.00816.98
8.0.100.0030.00516.85
8.0.90.0040.00416.80
8.0.80.0030.01216.83
8.0.70.0040.00416.84
8.0.60.0000.00716.84
8.0.50.0080.00016.94
8.0.30.0150.01117.03
8.0.20.0070.01217.40
8.0.10.0040.00417.14
8.0.00.0070.01016.90
7.4.330.0030.00315.09
7.4.320.0030.00316.65
7.4.300.0030.00316.55
7.4.290.0000.00616.59
7.4.280.0060.00716.54
7.4.270.0070.00016.61
7.4.260.0000.00716.65
7.4.250.0070.00016.51
7.4.240.0020.00616.60
7.4.230.0080.00016.77
7.4.220.0130.00616.77
7.4.210.0070.00716.73
7.4.200.0070.00016.68
7.4.160.0120.00816.52
7.4.150.0060.01117.40
7.4.140.0150.00617.86
7.4.130.0110.00516.49
7.4.120.0110.00616.61
7.4.110.0130.00316.76
7.4.100.0070.01016.47
7.4.90.0000.02416.43
7.4.80.0160.00319.39
7.4.70.0080.00816.59
7.4.60.0080.00816.44
7.4.50.0000.00416.30
7.4.40.0000.01916.53
7.4.30.0030.01216.70
7.4.00.0040.01114.96
7.3.330.0060.00013.27
7.3.320.0000.00513.09
7.3.310.0030.00316.48
7.3.300.0030.00316.29
7.3.290.0120.00416.38
7.3.280.0030.01216.36
7.3.270.0130.00517.40
7.3.260.0120.00716.62
7.3.250.0070.01016.61
7.3.240.0160.00616.57
7.3.230.0100.00716.45
7.3.210.0120.01216.38
7.3.200.0030.01919.39
7.3.190.0060.01016.38
7.3.180.0080.00816.23
7.3.170.0030.01616.59
7.3.160.0030.01216.64
7.2.330.0100.00716.53
7.2.320.0060.01216.61
7.2.310.0090.00916.84
7.2.300.0030.01316.61
7.2.290.0200.00316.88
7.1.70.0060.00617.03
7.1.60.0090.01319.32
7.1.50.0070.00317.01
7.1.00.0030.07722.40
7.0.200.0130.00316.80
7.0.140.0030.07321.99
7.0.60.0100.08319.97
7.0.50.0070.04017.71
7.0.40.0130.04720.13
7.0.30.0400.07320.21
7.0.20.0370.07720.05
7.0.10.0100.08320.23
7.0.00.0100.08020.22
5.6.280.0000.07721.10
5.6.210.0170.06320.66
5.6.200.0030.04318.14
5.6.190.0070.08320.33
5.6.180.0330.03320.63
5.6.170.0270.04320.54
5.6.160.0030.06320.71
5.6.150.0070.05318.18
5.6.140.0100.08318.21
5.6.130.0030.04018.25
5.6.120.0000.08720.75
5.6.110.0070.04720.98
5.6.100.0030.08720.95
5.6.90.0130.04320.97
5.6.80.0200.06720.39
5.5.350.0270.07720.52
5.5.340.0130.07317.99
5.5.330.0070.04020.43
5.5.320.0430.06320.30
5.5.310.0300.07720.36
5.5.300.0130.07718.03
5.5.290.0070.07717.96
5.5.280.0070.08720.80
5.5.270.0070.08020.88
5.5.260.0130.07020.86
5.5.250.0130.04320.66
5.5.240.0270.06320.18
5.4.450.0300.06319.20
5.4.440.0470.04019.39
5.4.430.0370.03319.41
5.4.420.0670.00019.46
5.4.410.0630.00019.13
5.4.400.0600.00019.29
5.4.390.0600.00019.15
5.4.380.0830.00018.98
5.4.370.0630.00019.00
5.4.360.0600.00019.01
5.4.350.0630.00019.03
5.4.340.0630.00019.04
5.4.320.0110.03312.48
5.4.310.0090.03712.48
5.4.300.0100.03412.48
5.4.290.0060.04012.48
5.4.280.0070.03412.38
5.4.270.0080.03412.38
5.4.260.0040.04012.38
5.4.250.0090.03512.38
5.4.240.0090.03312.38
5.4.230.0080.04612.37
5.4.220.0100.03712.37
5.4.210.0060.03512.37
5.4.200.0120.03612.37
5.4.190.0090.03312.36
5.4.180.0120.03512.37
5.4.170.0100.03212.38
5.4.160.0080.03612.37
5.4.150.0060.03612.37
5.4.140.0090.03512.05
5.4.130.0070.03512.04
5.4.120.0070.03512.00
5.4.110.0050.03811.99
5.4.100.0110.03211.99
5.4.90.0060.03911.99
5.4.80.0080.03612.00
5.4.70.0060.04111.99
5.4.60.0050.03611.99
5.4.50.0070.03611.99
5.4.40.0080.04411.98
5.4.30.0080.03311.98
5.4.20.0100.03211.98
5.4.10.0060.03511.98
5.4.00.0060.03611.46
5.3.290.0120.03412.80
5.3.280.0080.04212.71
5.3.270.0090.03612.72
5.3.260.0060.03912.72
5.3.250.0080.03812.72
5.3.240.0120.04012.72
5.3.230.0110.04112.71
5.3.220.0110.03312.68
5.3.210.0080.03912.68
5.3.200.0080.03512.68
5.3.190.0070.03712.68
5.3.180.0060.03812.68
5.3.170.0050.03712.67
5.3.160.0070.03612.67
5.3.150.0100.03612.67
5.3.140.0120.03412.66
5.3.130.0090.03612.66
5.3.120.0070.03712.66
5.3.110.0070.04012.66
5.3.100.0130.03712.12
5.3.90.0090.03312.09
5.3.80.0080.04012.08
5.3.70.0080.03612.08
5.3.60.0070.03712.06
5.3.50.0080.03512.01
5.3.40.0070.03512.01
5.3.30.0070.04211.97
5.3.20.0090.03611.75
5.3.10.0050.03511.72
5.3.00.0090.03811.70
5.2.170.0080.0279.21
5.2.160.0100.0349.21
5.2.150.0110.0289.21
5.2.140.0060.0299.21
5.2.130.0060.0279.16
5.2.120.0060.0279.17
5.2.110.0050.0289.18
5.2.100.0040.0309.17
5.2.90.0070.0309.17
5.2.80.0070.0369.16
5.2.70.0080.0319.16
5.2.60.0100.0269.11
5.2.50.0070.0289.08
5.2.40.0060.0279.06
5.2.30.0060.0399.04
5.2.20.0050.0299.03
5.2.10.0050.0278.93
5.2.00.0080.0258.79
5.1.60.0060.0238.08
5.1.50.0100.0208.07
5.1.40.0060.0228.05
5.1.30.0030.0278.41
5.1.20.0020.0328.43
5.1.10.0050.0258.15
5.1.00.0050.0258.16
5.0.50.0030.0216.63
5.0.40.0070.0216.50
5.0.30.0040.0326.30
5.0.20.0060.0236.28
5.0.10.0040.0286.25
5.0.00.0050.0316.25
4.4.90.0030.0154.78
4.4.80.0040.0144.75
4.4.70.0040.0144.76
4.4.60.0090.0154.75
4.4.50.0030.0154.77
4.4.40.0020.0264.70
4.4.30.0050.0184.76
4.4.20.0010.0174.84
4.4.10.0050.0134.85
4.4.00.0010.0264.76
4.3.110.0030.0154.67
4.3.100.0060.0124.66
4.3.90.0050.0134.64
4.3.80.0050.0274.59
4.3.70.0050.0174.63
4.3.60.0050.0134.63
4.3.50.0060.0124.63
4.3.40.0040.0234.54
4.3.30.0050.0183.30
4.3.20.0030.0173.27
4.3.10.0030.0183.23
4.3.00.0030.01713.60

preferences:
46.49 ms | 401 KiB | 5 Q