3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_array = array('a', 'b', 'c', 'd'); $by_col = ceil(count($input_array) / 3); print_r(array_chunk($input_array, $by_col));

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.00318.43
8.3.50.0100.00716.37
8.3.40.0000.01518.76
8.3.30.0070.00718.54
8.3.20.0000.00720.07
8.3.10.0080.00021.76
8.3.00.0050.00317.66
8.2.180.0130.00716.62
8.2.170.0090.00922.96
8.2.160.0100.00320.47
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0000.00722.11
8.2.120.0070.00026.35
8.2.110.0000.00921.15
8.2.100.0040.00818.22
8.2.90.0050.00319.30
8.2.80.0000.00817.97
8.2.70.0060.00317.48
8.2.60.0050.00317.90
8.2.50.0080.00018.10
8.2.40.0000.00720.64
8.2.30.0040.00421.21
8.2.20.0020.00518.12
8.2.10.0040.00418.22
8.2.00.0040.00418.15
8.1.280.0140.00025.92
8.1.270.0000.00721.95
8.1.260.0070.00026.35
8.1.250.0110.00728.09
8.1.240.0080.00024.06
8.1.230.0070.00418.74
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0040.00517.25
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0000.00818.71
8.1.160.0040.00419.02
8.1.150.0040.00420.61
8.1.140.0000.00719.61
8.1.130.0040.00418.93
8.1.120.0040.00417.42
8.1.110.0040.00417.47
8.1.100.0040.00417.39
8.1.90.0060.00317.56
8.1.80.0000.00717.49
8.1.70.0000.00717.54
8.1.60.0030.00617.64
8.1.50.0000.00817.58
8.1.40.0030.00517.57
8.1.30.0030.00717.76
8.1.20.0000.00817.69
8.1.10.0040.00417.43
8.1.00.0000.00817.47
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0000.00718.41
8.0.270.0000.00717.20
8.0.260.0040.00416.78
8.0.250.0030.00316.90
8.0.240.0000.01016.87
8.0.230.0040.00416.88
8.0.220.0040.00416.95
8.0.210.0030.00316.87
8.0.200.0070.00016.94
8.0.190.0000.00816.93
8.0.180.0000.00816.92
8.0.170.0000.00717.02
8.0.160.0040.00416.99
8.0.150.0000.00716.78
8.0.140.0030.00416.88
8.0.130.0000.00513.45
8.0.120.0040.00416.87
8.0.110.0000.00816.91
8.0.100.0050.00216.82
8.0.90.0030.00316.81
8.0.80.0100.01016.86
8.0.70.0000.00816.93
8.0.60.0050.00217.00
8.0.50.0050.00217.02
8.0.30.0080.01017.02
8.0.20.0090.01117.41
8.0.10.0000.00917.05
8.0.00.0160.00016.96
7.4.330.0050.00015.55
7.4.320.0030.00316.69
7.4.300.0030.00316.63
7.4.290.0070.00016.54
7.4.280.0050.00216.66
7.4.270.0000.00716.70
7.4.260.0080.00016.55
7.4.250.0000.00816.41
7.4.240.0040.00416.63
7.4.230.0030.00316.63
7.4.220.0040.02116.55
7.4.210.0060.01216.57
7.4.200.0030.00316.40
7.4.160.0100.00716.38
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0100.00916.63
7.4.120.0060.01116.48
7.4.110.0110.01116.63
7.4.100.0120.00616.56
7.4.90.0070.01016.54
7.4.80.0030.01319.39
7.4.70.0120.00916.46
7.4.60.0090.00716.59
7.4.50.0060.01016.58
7.4.40.0110.00616.48
7.4.30.0120.00316.66
7.4.00.0040.01014.90
7.3.330.0030.00313.14
7.3.320.0030.00313.19
7.3.310.0060.00016.16
7.3.300.0060.00016.16
7.3.290.0080.00816.29
7.3.280.0080.00716.31
7.3.270.0070.01317.40
7.3.260.0060.01116.39
7.3.250.0140.00416.26
7.3.240.0130.00316.40
7.3.230.0070.01016.32
7.3.210.0090.00916.32
7.3.200.0060.00916.42
7.3.190.0040.01216.40
7.3.180.0040.01216.55
7.3.170.0120.00316.44
7.3.160.0060.00916.36
7.3.120.0100.01014.90
7.3.110.0040.01414.36
7.3.100.0030.01214.71
7.3.90.0000.01914.93
7.3.80.0060.01014.92
7.3.70.0070.00714.74
7.3.60.0000.01414.66
7.3.50.0060.00914.83
7.3.40.0060.00614.87
7.3.30.0060.00914.88
7.3.20.0060.00916.51
7.3.10.0080.00816.56
7.3.00.0060.00316.55
7.2.330.0110.00616.63
7.2.320.0110.00616.85
7.2.310.0090.00916.69
7.2.300.0100.01616.30
7.2.290.0120.00916.45
7.2.250.0030.01315.02
7.2.240.0060.01015.11
7.2.230.0090.00314.93
7.2.220.0090.00315.09
7.2.210.0100.00714.81
7.2.200.0060.00615.05
7.2.190.0120.00414.75
7.2.180.0090.00915.10
7.2.170.0110.00414.96
7.2.60.0100.00516.36
7.2.00.0030.01019.40
7.1.330.0030.01215.83
7.1.320.0070.01015.64
7.1.310.0100.00615.68
7.1.300.0120.00315.61
7.1.290.0090.00615.96
7.1.280.0030.00615.56
7.1.270.0030.01415.45
7.1.260.0090.00615.61
7.1.200.0080.00415.82
7.1.100.0030.00617.78
7.1.70.0030.01317.07
7.1.60.0290.00435.15
7.1.50.0100.02434.59
7.1.40.0210.00834.32
7.1.30.0200.01734.34
7.1.20.0220.01534.54
7.1.10.0070.00716.58
7.1.00.0070.01016.76
7.0.200.0100.00716.46
7.0.190.0050.01116.60
7.0.180.0060.00816.21
7.0.170.0070.01016.11
7.0.160.0030.01516.08
7.0.150.0100.00616.06
7.0.140.0030.01416.28
7.0.130.0090.00916.45
7.0.120.0110.00316.53
7.0.110.0070.01016.11
7.0.100.0070.01016.09
7.0.90.0090.00916.11
7.0.80.0000.01616.19
7.0.70.0090.00816.09
7.0.60.0100.00716.14
7.0.50.0060.00916.34
7.0.40.0030.01516.45
7.0.30.0030.01316.46
7.0.20.0110.00616.52
7.0.10.0090.00716.27
7.0.00.0120.00616.33

preferences:
48.09 ms | 400 KiB | 5 Q