3v4l.org

run code in 300+ PHP versions simultaneously
<?php function slice_recursive(array $array, int $skip, int $keep) { if (!$array) { return $array; } return array_merge( array_slice( array_splice($array, 0, $skip + $keep), $skip ), slice_recursive($array, $skip, $keep) ); } var_export( slice_recursive(range(1, 13), 2, 3) );

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.5.10.0110.00616.64
8.5.00.0130.00919.71
8.4.150.0020.00114.05
8.4.140.0110.00917.71
8.4.130.0100.01017.44
8.4.120.0120.00820.30
8.4.110.0100.01019.00
8.4.100.0120.00917.48
8.4.90.0060.00620.57
8.4.80.0140.00618.83
8.4.70.0150.00518.89
8.4.60.0080.01219.03
8.4.50.0120.00919.39
8.4.40.0070.01517.52
8.4.30.0030.00518.70
8.4.20.0090.00617.79
8.4.10.0050.00519.48
8.3.280.0120.00918.29
8.3.270.0110.00916.22
8.3.260.0140.00516.38
8.3.250.0090.00618.80
8.3.240.0080.00516.47
8.3.230.0110.00816.67
8.3.220.0040.00418.81
8.3.210.0090.00816.57
8.3.200.0080.00716.51
8.3.190.0110.00916.76
8.3.180.0130.00616.43
8.3.170.0040.01418.86
8.3.160.0000.00918.27
8.3.150.0120.00618.27
8.3.140.0120.00617.33
8.3.130.0000.00818.41
8.3.120.0090.00618.86
8.3.110.0120.00320.94
8.3.100.0080.00024.06
8.3.90.0070.01126.77
8.3.80.0090.00017.97
8.3.70.0060.01218.31
8.3.60.0120.00918.56
8.3.50.0110.00716.70
8.3.40.0110.00320.03
8.3.30.0100.00721.91
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0100.01028.09
8.2.290.0090.00820.08
8.2.280.0040.01618.48
8.2.270.0090.00916.86
8.2.260.0090.00620.00
8.2.250.0040.00416.54
8.2.240.0050.00318.95
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00616.38
8.2.190.0130.00316.58
8.2.180.0100.01016.32
8.2.170.0100.01018.96
8.2.160.0130.00722.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0070.01128.09
8.2.120.0080.01028.09
8.2.110.0090.00828.09
8.2.100.0130.00828.09
8.2.90.0080.00828.09
8.2.80.0100.01028.09
8.2.70.0150.00528.09
8.2.60.0140.00328.09
8.2.50.0080.01128.09
8.2.40.0170.00228.09
8.2.30.0140.00828.09
8.2.20.0050.01028.09
8.2.10.0090.00428.09
8.2.00.0100.00428.09
8.1.330.0110.00716.61
8.1.320.0080.01117.69
8.1.310.0120.00318.05
8.1.300.0090.00619.94
8.1.290.0030.00730.84
8.1.280.0060.01525.92
8.1.270.0070.00022.14
8.1.260.0130.00128.09
8.1.250.0050.00728.09
8.1.240.0090.00628.09
8.1.230.0130.00228.09
8.1.220.0070.00928.09
8.1.210.0130.00228.09
8.1.200.0040.01128.09
8.1.190.0030.01128.09
8.1.180.0040.00928.09
8.1.170.0070.00528.09
8.1.160.0070.00528.09
8.1.150.0060.00628.09
8.1.140.0060.00328.09
8.1.130.0100.00428.09
8.1.120.0020.00628.09
8.1.110.0010.00728.09
8.1.100.0070.00228.09
8.1.90.0120.00228.09
8.1.80.0040.00428.09
8.1.70.0060.00828.09
8.1.60.0050.00428.09
8.1.50.0040.00428.09
8.1.40.0060.00328.09
8.1.30.0070.00128.09
8.1.20.0050.00328.09
8.1.10.0050.00328.09
8.1.00.0070.00228.09

preferences:
59.48 ms | 403 KiB | 5 Q