3v4l.org

run code in 200+ PHP versions simultaneously
<?php function double_chunk($array, $maxrows) { $size = sizeof($array); $columns = ceil($size / $maxrows); $fullrows = $size - ($columns - 1) * $maxrows; if ($fullrows == $maxrows) { return array_chunk($array, $fullrows); // all columns have full rows, don't splice } return array_merge( array_chunk( array_splice($array, 0, $columns * $fullrows), $columns ), array_chunk($array, $columns - 1) ); } var_export(double_chunk(range('a', 'i'), 3));
based on aAeYi

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.0060.00614.95
7.3.120.0040.01514.84
7.3.110.0060.00614.98
7.3.100.0060.00914.59
7.3.90.0000.01414.74
7.3.80.0030.01314.79
7.3.70.0080.00414.66
7.3.60.0090.00314.84
7.3.50.0060.00614.68
7.3.40.0020.00514.91
7.3.30.0000.01114.82
7.3.20.0000.01316.68
7.3.10.0060.00916.63
7.3.00.0080.01016.42
7.2.240.0040.00714.82
7.2.230.0060.01015.09
7.2.220.0080.00814.90
7.2.210.0080.00314.84
7.2.200.0090.00615.04
7.2.190.0030.01314.93
7.2.180.0060.00615.05
7.2.170.0000.00814.99
7.2.160.0040.00815.11
7.2.150.0030.00916.86
7.2.140.0000.01316.86
7.2.130.0050.01216.64
7.2.120.0100.00516.68
7.2.110.0110.00916.22
7.2.100.0080.01116.11
7.2.90.0060.00916.07
7.2.80.0060.00716.13
7.2.70.0090.00916.15
7.2.60.0070.01016.17
7.2.50.0100.00816.13
7.2.40.0090.00816.31
7.2.30.0300.00716.19
7.2.20.0050.00916.34
7.2.10.0090.01016.16
7.2.00.0450.01116.19
7.1.330.0090.00715.91
7.1.320.0060.00815.68
7.1.310.0120.00315.78
7.1.300.0070.00715.73
7.1.290.0060.00915.84
7.1.280.0030.00915.86
7.1.270.0060.00915.64
7.1.260.0000.01315.89
7.1.250.0090.00615.70
7.1.230.1440.01013.75
7.1.220.0180.00213.73
7.1.210.0810.00713.72
7.1.200.0030.01413.65
7.1.190.0100.01413.64
7.1.180.0070.01113.77
7.1.170.0120.00413.70
7.1.160.0030.01213.77
7.1.150.0120.00613.57
7.1.140.0120.00613.65
7.1.130.1140.01013.86
7.1.120.0200.00813.65
7.1.110.0300.00913.51
7.1.100.0210.00413.51
7.1.90.0050.01413.64
7.1.80.0000.01413.79
7.1.70.0090.00613.85
7.1.60.0200.02031.63
7.1.50.1140.00631.53
7.1.40.3640.01431.74
7.1.30.2130.00731.84
7.1.20.2510.01031.93
7.1.10.2000.00313.81
7.1.00.1550.00713.55
5.6.380.0000.01514.24