3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_array = array(1, 2); print_r(array_chunk($input_array, 1)); print_r(array_chunk($input_array, 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.3.60.0120.00616.63
8.3.50.0070.00716.38
8.3.40.0040.01218.46
8.3.30.0070.00718.54
8.3.20.0040.00421.74
8.3.10.0040.00423.59
8.3.00.0000.00819.72
8.2.180.0110.00418.29
8.2.170.0070.00722.96
8.2.160.0000.01421.02
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00422.26
8.2.120.0050.00226.35
8.2.110.0050.00520.53
8.2.100.0090.00317.63
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0060.00317.36
8.2.60.0060.00317.91
8.2.50.0040.00418.10
8.2.40.0000.00820.43
8.2.30.0040.00419.06
8.2.20.0070.00018.02
8.2.10.0040.00417.90
8.2.00.0030.00618.00
8.1.280.0090.00925.92
8.1.270.0000.00722.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00024.01
8.1.230.0110.00017.66
8.1.220.0050.00317.77
8.1.210.0040.00418.77
8.1.200.0030.00716.98
8.1.190.0090.00017.27
8.1.180.0000.00718.10
8.1.170.0000.00821.99
8.1.160.0070.00018.78
8.1.150.0000.00720.04
8.1.140.0000.00719.48
8.1.130.0000.00718.92
8.1.120.0070.00017.27
8.1.110.0040.00417.38
8.1.100.0040.00417.37
8.1.90.0040.00417.35
8.1.80.0030.00317.34
8.1.70.0060.00317.35
8.1.60.0100.00017.56
8.1.50.0050.00317.38
8.1.40.0040.00417.46
8.1.30.0090.00017.65
8.1.20.0070.00017.64
8.1.10.0020.00517.48
8.1.00.0040.00417.46
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0040.00418.38
8.0.270.0050.00317.11
8.0.260.0000.00616.74
8.0.250.0070.00016.91
8.0.240.0000.00916.76
8.0.230.0030.00416.92
8.0.220.0040.00416.82
8.0.210.0070.00016.80
8.0.200.0000.00616.89
8.0.190.0090.00016.76
8.0.180.0000.00716.84
8.0.170.0000.00716.94
8.0.160.0000.00716.89
8.0.150.0040.00416.82
8.0.140.0000.00716.61
8.0.130.0040.00413.29
8.0.120.0050.00316.78
8.0.110.0040.00416.89
8.0.100.0050.00216.80
8.0.90.0080.00016.77
8.0.80.0030.01716.82
8.0.70.0040.00416.68
8.0.60.0000.00716.63
8.0.50.0000.00716.79
8.0.30.0110.00716.82
8.0.20.0100.00917.40
8.0.10.0000.00816.92
8.0.00.0100.00716.47
7.4.330.0030.00315.55
7.4.320.0000.00616.52
7.4.300.0000.00616.38
7.4.290.0040.00416.54
7.4.280.0060.00316.51
7.4.270.0030.00316.53
7.4.260.0000.00613.26
7.4.250.0030.00316.34
7.4.240.0050.00216.47
7.4.230.0000.00716.33
7.4.220.0030.01416.43
7.4.210.0040.01116.54
7.4.200.0030.00316.61
7.4.160.0130.00416.39
7.4.150.0150.00317.40
7.4.140.0100.01117.86
7.4.130.0130.00716.29
7.4.120.0100.00916.47
7.4.110.0100.00616.17
7.4.100.0090.01216.35
7.4.90.0090.00916.50
7.4.80.0140.00519.39
7.4.70.0070.01516.32
7.4.60.0110.00516.31
7.4.50.0100.00516.47
7.4.40.0070.01016.46
7.4.30.0140.00316.45
7.4.00.0090.00714.70
7.3.330.0060.00013.07
7.3.320.0000.00512.98
7.3.310.0070.00015.98
7.3.300.0070.00016.13
7.3.290.0070.00816.11
7.3.280.0100.00816.11
7.3.270.0170.00017.40
7.3.260.0100.00616.48
7.3.250.0090.00916.11
7.3.240.0110.00716.25
7.3.230.0130.00316.10
7.3.210.0090.00616.25
7.3.200.0100.00616.32
7.3.190.0120.00916.39
7.3.180.0080.00816.16
7.3.170.0060.00916.13
7.3.160.0060.00916.06
7.3.120.0060.01114.39
7.3.110.0030.00914.84
7.3.100.0100.00314.50
7.3.90.0090.00614.75
7.3.80.0080.00414.64
7.3.70.0060.00914.62
7.3.60.0100.00314.47
7.3.50.0060.00914.76
7.3.40.0030.01014.72
7.3.30.0110.00414.34
7.3.20.0030.00616.63
7.3.10.0040.00816.58
7.3.00.0000.01016.17
7.2.330.0150.00316.57
7.2.320.0030.01316.43
7.2.310.0030.01416.26
7.2.300.0150.00616.14
7.2.290.0070.01016.53
7.2.250.0110.00614.81
7.2.240.0060.00914.97
7.2.230.0000.01714.91
7.2.220.0080.00415.02
7.2.210.0140.00014.95
7.2.200.0070.00714.98
7.2.190.0090.00314.98
7.2.180.0070.00714.63
7.2.170.0000.00914.85
7.2.60.0030.01016.77
7.2.00.0090.00319.33
7.1.330.0040.01115.64
7.1.320.0080.00415.54
7.1.310.0040.00715.83
7.1.300.0030.01015.70
7.1.290.0000.01015.83
7.1.280.0030.01415.79
7.1.270.0100.00715.63
7.1.260.0040.00415.63
7.1.200.0040.00815.84
7.1.100.0070.00717.85
7.1.70.0030.00617.05
7.1.60.0530.01033.13
7.1.50.0530.00732.94
7.1.40.0630.01332.65
7.1.30.0600.01732.48
7.1.20.1100.02032.64
7.1.10.0930.01014.75
7.1.00.0670.01714.70
7.0.200.0470.00714.73
7.0.190.0570.00714.93
7.0.180.0530.01314.21
7.0.170.0470.01014.38
7.0.160.0800.01714.41
7.0.150.0570.01314.29
7.0.140.0670.00714.12
7.0.130.0500.00714.63
7.0.120.0470.01314.59
7.0.110.0670.00714.32
7.0.100.0600.01314.42
7.0.90.0500.01314.29
7.0.80.1500.01314.34
7.0.70.0530.01014.52
7.0.60.0570.01014.30
7.0.50.0600.01314.64
7.0.40.0670.00714.63
7.0.30.0570.00714.48
7.0.20.0700.01014.53
7.0.10.0900.00714.57
7.0.00.0600.01014.72

preferences:
64.61 ms | 401 KiB | 5 Q