3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array ( "group_name_1" => "audi", "group_locations_1" => "tokyo,barcelona,paris", "group_quantities_at_locations_1" => "1,2,7", "group_name_2" => "ford", "group_locations_2" => "london,prag", "group_quantities_at_locations_2" => "3,6" ); $result = []; array_walk(array_chunk($input,3),function($v)use(&$result){ $result[$v[0]] = array_combine(explode(",",$v[1]),explode(",",$v[2])); }); print_r($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.3.60.0090.00916.74
8.3.50.0120.00921.92
8.3.40.0110.00718.71
8.3.30.0100.00318.84
8.3.20.0000.00920.30
8.3.10.0040.00420.71
8.3.00.0000.00821.60
8.2.180.0070.01016.50
8.2.170.0130.00322.96
8.2.160.0140.00022.23
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00320.73
8.2.120.0070.00026.35
8.2.110.0050.00522.20
8.2.100.0120.00017.72
8.2.90.0040.00418.00
8.2.80.0070.00318.16
8.2.70.0000.00817.63
8.2.60.0040.00418.05
8.2.50.0000.00818.10
8.2.40.0000.00720.59
8.2.30.0050.00219.43
8.2.20.0020.00517.87
8.2.10.0000.00718.14
8.2.00.0000.00718.14
8.1.280.0070.01125.92
8.1.270.0190.00022.06
8.1.260.0030.00728.09
8.1.250.0000.00728.09
8.1.240.0070.00322.51
8.1.230.0070.00421.04
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.22
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0050.00318.61
8.1.160.0070.00022.07
8.1.150.0080.00020.64
8.1.140.0000.00819.45
8.1.130.0080.00017.58
8.1.120.0000.00817.45
8.1.110.0040.00417.47
8.1.100.0050.00217.46
8.1.90.0040.00417.49
8.1.80.0000.00717.48
8.1.70.0030.00517.37
8.1.60.0000.00717.59
8.1.50.0000.00817.53
8.1.40.0000.00717.42
8.1.30.0030.00517.68
8.1.20.0000.00817.54
8.1.10.0000.00717.59
8.1.00.0040.00417.40
8.0.300.0050.00219.98
8.0.290.0000.00816.75
8.0.280.0050.00318.43
8.0.270.0000.00717.20
8.0.260.0030.00317.21
8.0.250.0030.00317.06
8.0.240.0000.00817.00
8.0.230.0040.00416.99
8.0.220.0040.00416.83
8.0.210.0040.00416.93
8.0.200.0060.00016.99
8.0.190.0030.00516.97
8.0.180.0040.00416.87
8.0.170.0040.00416.94
8.0.160.0070.00016.87
8.0.150.0000.00716.79
8.0.140.0040.00416.96
8.0.130.0030.00313.31
8.0.120.0030.00516.89
8.0.110.0080.00016.87
8.0.100.0050.00216.99
8.0.90.0080.00017.00
8.0.80.0130.00316.95
8.0.70.0070.00016.89
8.0.60.0000.00816.99
8.0.50.0000.00816.89
8.0.30.0090.00717.16
8.0.20.0080.01017.40
8.0.10.0040.00417.14
8.0.00.0090.01116.77
7.4.330.0000.00516.67
7.4.320.0030.00316.58
7.4.300.0060.00016.47
7.4.290.0070.00016.49
7.4.280.0040.00416.35
7.4.270.0000.00716.55
7.4.260.0040.00416.38
7.4.250.0000.00716.39
7.4.240.0000.00716.58
7.4.230.0000.00716.62
7.4.220.0070.01116.66
7.4.210.0060.01416.55
7.4.200.0030.00316.50
7.4.160.0090.00916.57
7.4.150.0100.00717.40
7.4.140.0090.00917.86
7.4.130.0080.01416.58
7.4.120.0080.01016.58
7.4.110.0130.00316.46
7.4.100.0160.00316.62
7.4.90.0090.01216.42
7.4.80.0060.01519.39
7.4.70.0060.01016.47
7.4.60.0150.00716.46
7.4.50.0130.00316.51
7.4.40.0070.01016.45
7.4.30.0040.01316.63
7.4.00.0060.00914.73
7.3.330.0030.00313.45
7.3.320.0070.00013.30
7.3.310.0030.00316.32
7.3.300.0030.00316.29
7.3.290.0090.00916.44
7.3.280.0110.00716.41
7.3.270.0090.00917.40
7.3.260.0130.00716.35
7.3.250.0100.01116.44
7.3.240.0080.01016.43
7.3.230.0060.01216.39
7.3.210.0130.00416.50
7.3.200.0130.00916.44
7.3.190.0070.01016.49
7.3.180.0060.01516.67
7.3.170.0030.01216.64
7.3.160.0060.00916.30
7.2.330.0120.00816.65
7.2.320.0160.00916.63
7.2.310.0100.00716.52
7.2.300.0110.01116.64
7.2.290.0060.01016.49
7.2.60.0030.00616.97
7.2.00.0090.00319.14
7.1.200.0060.00615.87
7.1.100.0040.00818.05
7.1.70.0070.00317.26
7.1.60.0030.02119.40
7.1.50.0100.01017.05
7.1.00.0000.08022.57
7.0.200.0170.00614.88
7.0.60.0330.05719.87
7.0.50.0130.03317.95
7.0.40.0070.04320.15
7.0.30.0500.07320.26
7.0.20.0130.04320.20
7.0.10.0030.04320.12
7.0.00.0070.09020.18
5.6.280.0030.07320.79
5.6.210.0130.05320.47
5.6.200.0100.08318.16
5.6.190.0100.03720.55
5.6.180.0330.04320.64
5.6.170.0400.07320.57
5.6.160.0070.06720.48
5.6.150.0030.08718.19
5.6.140.0000.04318.18
5.6.130.0070.05318.18
5.6.120.0030.06021.12
5.6.110.0070.06321.14
5.6.100.0070.08321.14
5.6.90.0070.04021.10
5.6.80.0070.04020.50
5.5.350.0130.03720.36
5.5.340.0070.05717.98
5.5.330.0100.07320.42
5.5.320.0230.04320.44
5.5.310.0230.06320.36
5.5.300.0030.04017.92
5.5.290.0030.05317.97
5.5.280.0170.03320.73
5.5.270.0170.07020.87
5.5.260.0170.06020.88
5.5.250.0100.07720.69
5.5.240.0200.05320.36

preferences:
60.06 ms | 401 KiB | 5 Q