3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['a' => 'foo', 'b' => 'bar', 'c' => 'baz']; var_dump(array_chunk($arr, 1, true));

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.4.120.0130.00720.44
8.4.110.0160.00522.57
8.4.100.0140.00717.51
8.4.90.0120.00918.51
8.4.80.0100.01017.84
8.4.70.0080.00617.47
8.4.60.0040.00518.45
8.4.50.0140.00719.50
8.4.40.0180.00317.11
8.4.30.0150.00324.07
8.4.20.0200.00019.50
8.4.10.0070.01419.27
8.3.250.0090.00918.93
8.3.240.0080.01116.60
8.3.230.0060.00816.73
8.3.220.0070.00217.13
8.3.210.0130.00516.79
8.3.200.0060.00316.41
8.3.190.0140.00918.75
8.3.180.0120.00716.65
8.3.170.0150.00316.97
8.3.160.0090.00920.51
8.3.150.0040.01416.97
8.3.140.0000.00916.63
8.3.130.0050.00316.53
8.3.120.0130.00320.59
8.3.110.0330.01216.32
8.3.100.0310.00616.59
8.3.90.0450.00316.29
8.3.80.0400.00716.37
8.3.70.0400.00616.05
8.3.60.0400.00916.18
8.3.50.0380.01216.06
8.3.40.0300.01717.13
8.3.30.0370.00616.86
8.3.20.0250.00616.96
8.3.10.0290.00817.23
8.3.00.0170.00719.10
8.2.290.0110.00822.41
8.2.280.0050.00418.15
8.2.270.0110.00716.48
8.2.260.0110.00417.24
8.2.250.0070.00718.23
8.2.240.0050.00318.23
8.2.230.0210.01216.33
8.2.220.0130.02316.44
8.2.210.0310.01216.54
8.2.200.0290.01416.16
8.2.190.0330.00716.26
8.2.180.0270.00716.41
8.2.170.0270.00817.30
8.2.160.0350.00317.16
8.2.150.0380.00717.29
8.2.140.0420.00617.46
8.2.130.0360.00017.31
8.2.120.0390.00017.36
8.2.110.0290.00717.43
8.2.100.0300.00817.30
8.2.90.0310.00817.45
8.2.80.0320.01017.41
8.2.70.0370.01117.36
8.2.60.0310.00617.07
8.2.50.0350.00317.25
8.2.40.0350.00417.41
8.2.30.0400.00017.26
8.2.20.0310.00717.30
8.2.10.0410.00017.33
8.2.00.0480.01417.14
8.1.330.0110.00822.05
8.1.320.0100.00815.98
8.1.310.0040.00416.72
8.1.300.0080.00818.02
8.1.290.0170.01116.05
8.1.280.0310.00916.14
8.1.270.0170.00717.33
8.1.260.0310.00317.12
8.1.250.0330.00817.19
8.1.240.0250.01217.03
8.1.230.0290.00717.12
8.1.220.0340.00416.91
8.1.210.0290.00916.76
8.1.200.0310.00616.91
8.1.190.0280.00916.91
8.1.180.0280.00817.13
8.1.170.0350.00617.07
8.1.160.0280.00917.13
8.1.150.0250.01117.16
8.1.140.0270.01017.15
8.1.130.0310.00517.21
8.1.120.0320.00417.19
8.1.110.0280.00317.07
8.1.100.0230.00317.27
8.1.90.0120.00616.94
8.1.80.0170.00416.82
8.1.70.0260.00416.88
8.1.60.0150.00417.23
8.1.50.0280.00317.17
8.1.40.0190.01317.21
8.1.30.0160.00417.19
8.1.20.0280.00317.27
8.1.10.0280.00317.10
8.1.00.0470.00317.16

preferences:
26.49 ms | 403 KiB | 5 Q