3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = 13; $skip = 2; $keep = 3; $result = []; $array = range(1, 13); while ($array) { array_push( $result, ...array_slice( array_splice($array, 0, $skip + $keep), $skip ) ); } var_export($result);

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.0140.00616.65
8.5.00.0130.00919.79
8.4.150.0010.00114.05
8.4.140.0150.00517.44
8.4.130.0120.00817.65
8.4.120.0040.00424.19
8.4.110.0100.00822.42
8.4.100.0130.00717.79
8.4.90.0160.00420.60
8.4.80.0120.00820.55
8.4.70.0130.00618.60
8.4.60.0100.00818.75
8.4.50.0120.00917.64
8.4.40.0170.00317.37
8.4.30.0100.00718.91
8.4.20.0070.01417.54
8.4.10.0060.00919.24
8.3.280.0120.00718.27
8.3.270.0110.00916.47
8.3.260.0100.00916.41
8.3.250.0120.00618.66
8.3.240.0080.01117.08
8.3.230.0060.00816.64
8.3.220.0120.00318.68
8.3.210.0060.00516.34
8.3.200.0060.00316.79
8.3.190.0080.01016.35
8.3.180.0040.00418.28
8.3.170.0070.01018.71
8.3.160.0040.00420.21
8.3.150.0030.00619.00
8.3.140.0030.00516.59
8.3.130.0090.00016.68
8.3.120.0030.00520.71
8.3.110.0100.00718.30
8.3.100.0130.00716.66
8.3.90.0150.00626.77
8.3.80.0090.00017.97
8.3.70.0150.00418.15
8.3.60.0070.01118.43
8.3.50.0110.00716.67
8.3.40.0130.00320.31
8.3.30.0040.01121.77
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0110.01128.09
8.2.290.0100.00920.39
8.2.280.0110.00718.53
8.2.270.0040.00717.06
8.2.260.0030.00520.68
8.2.250.0040.00418.63
8.2.240.0040.01518.93
8.2.230.0090.00620.94
8.2.220.0030.00624.06
8.2.210.0040.01126.77
8.2.200.0060.00318.29
8.2.190.0100.00716.58
8.2.180.0120.00918.29
8.2.170.0120.00318.71
8.2.160.0070.00722.96
8.2.150.0040.00725.66
8.2.140.0080.00024.66
8.2.130.0110.00728.09
8.2.120.0090.00728.09
8.2.110.0140.00628.09
8.2.100.0110.00728.09
8.2.90.0140.00528.09
8.2.80.0110.00928.09
8.2.70.0140.00228.09
8.2.60.0070.01128.09
8.2.50.0110.00328.09
8.2.40.0080.00928.09
8.2.30.0100.00228.09
8.2.20.0070.01428.09
8.2.10.0160.00128.09
8.2.00.0110.00828.09
8.1.330.0110.00821.77
8.1.320.0090.00917.91
8.1.310.0060.00316.49
8.1.300.0080.01218.07
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0050.00320.57
8.1.260.0140.00528.09
8.1.250.0080.01028.09
8.1.240.0110.00528.09
8.1.230.0100.00728.09
8.1.220.0080.00728.09
8.1.210.0090.00628.09
8.1.200.0070.00428.09
8.1.190.0040.00428.09
8.1.180.0060.00328.09
8.1.170.0140.00328.09
8.1.160.0090.00828.09
8.1.150.0060.00328.09
8.1.140.0070.01028.09
8.1.130.0120.00528.09
8.1.120.0070.00528.09
8.1.110.0050.00428.09
8.1.100.0060.00328.09
8.1.90.0070.00628.09
8.1.80.0100.00228.09
8.1.70.0070.00528.09
8.1.60.0020.01028.09
8.1.50.0090.00328.09
8.1.40.0100.00128.09
8.1.30.0020.01028.09
8.1.20.0090.00328.09
8.1.10.0080.00528.09
8.1.00.0100.00228.09

preferences:
33.32 ms | 403 KiB | 5 Q