3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'firstname', 'bob', 'lastname', 'alex' ]; $result = []; foreach (array_chunk($array, 2) as [$k, $result[$k]]); 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.30.0090.00917.91
8.5.20.0140.00520.15
8.5.10.0120.00716.77
8.5.00.0120.01019.98
8.4.180.0130.01019.77
8.4.170.0110.01120.32
8.4.160.0110.01020.47
8.4.150.0070.00516.86
8.4.140.0160.00417.39
8.4.130.0090.01017.68
8.4.120.0070.00420.52
8.4.110.0120.00718.61
8.4.100.0040.00617.67
8.4.90.0140.00717.61
8.4.80.0030.00517.71
8.4.70.0120.00717.97
8.4.60.0120.00817.77
8.4.50.0130.00720.24
8.4.40.0100.01017.68
8.4.30.0130.00620.69
8.4.20.0440.00417.44
8.4.10.0340.01117.53
8.3.300.0110.00920.64
8.3.290.0080.00420.64
8.3.280.0110.00918.44
8.3.270.0100.01016.52
8.3.260.0090.00716.36
8.3.250.0110.00819.05
8.3.240.0120.00616.42
8.3.230.0090.01116.50
8.3.220.0070.00017.42
8.3.210.0060.00216.56
8.3.200.0120.00716.56
8.3.190.0030.00517.26
8.3.180.0040.00519.13
8.3.170.0150.00316.98
8.3.160.0040.00416.60
8.3.150.0370.00716.57
8.3.140.0300.01316.35
8.3.130.0300.01016.62
8.3.120.0340.00616.58
8.3.110.0320.00416.39
8.3.100.0340.01016.63
8.3.90.0350.01016.39
8.3.80.0350.01116.12
8.3.70.0430.00716.50
8.3.60.0260.01016.48
8.3.50.0300.00416.14
8.3.40.0150.00617.34
8.3.30.0140.00317.40
8.3.20.0280.00817.15
8.3.10.0310.00617.26
8.3.00.0180.00317.41
8.2.300.0100.01020.46
8.2.290.0060.00320.35
8.2.280.0090.00818.36
8.2.270.0300.00816.80
8.2.260.0120.01216.61
8.2.250.0230.01616.67
8.2.240.0370.00316.27
8.2.230.0390.00016.24
8.2.220.0310.00816.40
8.2.210.0450.00616.34
8.2.200.0290.01116.28
8.2.190.0360.00816.55
8.2.180.0340.00716.60
8.2.170.0370.01117.63
8.2.160.0370.00417.25
8.2.150.0320.01017.30
8.2.140.0280.01317.39
8.2.130.0370.00317.44
8.2.120.0290.01117.62
8.2.110.0300.01017.48
8.2.100.0350.00417.47
8.2.90.0220.01617.64
8.2.80.0290.01017.41
8.2.70.0250.01417.64
8.2.60.0270.00417.32
8.2.50.0310.01217.29
8.2.40.0220.00617.52
8.2.30.0200.01217.35
8.2.20.0300.00717.16
8.2.10.0300.01217.57
8.2.00.0260.01117.27
8.1.340.0150.00920.38
8.1.320.0100.00816.03

preferences:
42.42 ms | 848 KiB | 5 Q