3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["1", "2", "3", "4", "5"]; var_export( array_chunk($array, count($array) + 1 >> 1) );

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.30.0090.00817.69
8.5.20.0080.00920.13
8.5.10.0140.00816.76
8.5.00.0100.01219.83
8.4.180.0150.00719.65
8.4.170.0140.00820.38
8.4.160.0120.00920.58
8.4.150.0060.00616.74
8.4.140.0110.00517.26
8.4.130.0060.01317.70
8.4.120.0140.00520.46
8.4.110.0050.00422.48
8.4.100.0070.00318.22
8.4.90.0080.01218.76
8.4.80.0130.00518.50
8.4.70.0070.01217.79
8.4.60.0120.00718.93
8.4.50.0080.01218.38
8.4.40.0160.00317.41
8.4.30.0090.00920.31
8.4.20.0140.00718.77
8.4.10.0210.01417.27
8.3.300.0070.00520.76
8.3.290.0090.01020.86
8.3.280.0110.00818.35
8.3.270.0130.00616.39
8.3.260.0130.00616.82
8.3.250.0080.01218.73
8.3.240.0130.00617.29
8.3.230.0090.01016.48
8.3.220.0110.00819.04
8.3.210.0100.01016.85
8.3.200.0060.00616.59
8.3.190.0110.00717.00
8.3.180.0100.00816.41
8.3.170.0080.00816.97
8.3.160.0120.00618.77
8.3.150.0270.00716.36
8.3.140.0250.00016.04
8.3.130.0130.00616.46
8.3.120.0140.00516.53
8.3.110.0110.00716.14
8.3.100.0160.00316.79
8.3.90.0170.00316.36
8.3.80.0150.00616.69
8.3.70.0120.00716.27
8.3.60.0180.00316.21
8.3.50.0170.00316.22
8.3.40.0150.00717.21
8.3.30.0120.00317.28
8.3.20.0130.00317.20
8.3.10.0130.00317.06
8.3.00.0110.00017.30
8.2.300.0090.01220.25
8.2.290.0120.00620.04
8.2.280.0110.00418.09
8.2.270.0080.00816.71
8.2.260.0170.00016.02
8.2.250.0170.00316.41
8.2.240.0100.01016.18
8.2.230.0170.00016.29
8.2.220.0150.00316.09
8.2.210.0180.00016.16
8.2.200.0150.00316.48
8.2.190.0070.01016.07
8.2.180.0130.00316.25
8.2.170.0140.00517.44
8.2.160.0080.00817.25
8.2.150.0150.00517.27
8.2.140.0180.00017.39
8.2.130.0210.00317.15
8.2.120.0110.00617.40
8.2.110.0110.00717.15
8.2.100.0130.00417.30
8.2.90.0120.00717.15
8.2.80.0150.00417.27
8.2.70.0170.00017.16
8.2.60.0180.00017.26
8.2.50.0160.00317.30
8.2.40.0180.00017.18
8.2.30.0100.00517.26
8.2.20.0090.00617.26
8.2.10.0140.00317.41
8.2.00.0160.00017.34
8.1.340.0140.00720.18
8.1.320.0090.00816.30

preferences:
45.13 ms | 853 KiB | 5 Q