3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( "0" => Array ( "0" => "Name", "1" => "Company", "2" => "Email", "3" => "City", ), "1" => Array ( "0" => "Foo", "1" => "Foo & co", "2" => "foo@mail.com", "3" => "NY", ), "2" => Array ( "0" => "Bar", "1" => "Bar & co", "2" => "bar@mail.com", "3" => "Las Vegas", ) ); $final_result = array(); foreach($array as $key=>$value){ if($key == 0){ $final_result = array_values($value); }else{ $result[]= array_combine($final_result, array_values($value)); } } echo "<pre>"; 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.130.0040.00418.53
8.3.120.0180.00020.65
8.3.110.0030.00618.28
8.3.100.0090.00616.63
8.3.90.0080.00026.77
8.3.80.0030.00618.43
8.3.70.0000.01518.52
8.3.60.0140.00318.17
8.3.50.0100.00822.05
8.3.40.0150.00018.71
8.3.30.0090.00618.76
8.3.20.0090.00021.54
8.3.10.0000.00720.24
8.3.00.0080.00022.34
8.2.250.0140.00418.10
8.2.240.0000.00917.09
8.2.230.0040.00420.94
8.2.220.0140.00024.06
8.2.210.0080.00026.77
8.2.200.0070.00318.29
8.2.190.0190.00016.58
8.2.180.0060.01016.50
8.2.170.0130.00718.91
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.06
8.2.110.0060.00320.52
8.2.100.0070.00717.91
8.2.90.0040.00420.77
8.2.80.0000.00817.97
8.2.70.0060.00318.05
8.2.60.0070.00318.11
8.2.50.0000.00818.10
8.2.40.0000.00719.30
8.2.30.0000.00719.41
8.2.20.0000.00718.16
8.2.10.0000.00819.22
8.2.00.0000.00819.36
8.1.300.0070.00420.10
8.1.290.0080.00030.84
8.1.280.0140.00025.92
8.1.270.0110.00023.99
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0060.00621.99
8.1.230.0060.00621.00
8.1.220.0080.00017.77
8.1.210.0000.00819.00
8.1.200.0030.00617.36
8.1.190.0060.00617.36
8.1.180.0000.00818.10
8.1.170.0050.00318.54
8.1.160.0040.00418.89
8.1.150.0040.00418.99
8.1.140.0000.00720.98
8.1.130.0050.00217.45
8.1.120.0030.00317.36
8.1.110.0040.00417.45
8.1.100.0070.00017.52
8.1.90.0030.00617.42
8.1.80.0050.00317.36
8.1.70.0090.00017.50
8.1.60.0090.00017.55
8.1.50.0050.00317.39
8.1.40.0040.00417.35
8.1.30.0000.00817.62
8.1.20.0070.00317.66
8.1.10.0090.00017.53
8.1.00.0000.01317.43
8.0.300.0040.00420.09
8.0.290.0060.00316.75
8.0.280.0040.00418.43
8.0.270.0000.00817.26
8.0.260.0000.00616.83
8.0.250.0030.00316.98
8.0.240.0040.00416.82
8.0.230.0000.00816.86
8.0.220.0030.00316.78
8.0.210.0030.00316.86
8.0.200.0070.00016.84
8.0.190.0070.00416.97
8.0.180.0040.00416.78
8.0.170.0060.00316.80
8.0.160.0000.00816.97
8.0.150.0040.00416.70
8.0.140.0040.00416.86
8.0.130.0030.00313.38
8.0.120.0000.00716.91
8.0.110.0040.00416.79
8.0.100.0000.00716.76
8.0.90.0080.00016.70
8.0.80.0100.00716.88
8.0.70.0000.00816.95
8.0.60.0040.00416.93
8.0.50.0000.00816.78
8.0.30.0090.00917.22
8.0.20.0130.00717.05
8.0.10.0050.00317.08
8.0.00.0110.00916.87
7.4.330.0000.00515.55
7.4.320.0060.00016.63
7.4.300.0030.00316.55
7.4.290.0000.00816.50
7.4.280.0030.00516.61
7.4.270.0050.00316.50
7.4.260.0030.00316.56
7.4.250.0070.00016.45
7.4.240.0030.00416.51
7.4.230.0030.00316.62
7.4.220.0050.00216.67
7.4.210.0110.00316.53
7.4.200.0000.00716.42
7.4.140.0130.00417.86
7.4.130.0120.00916.62
7.4.120.0090.00916.39
7.4.110.0180.00616.36
7.4.100.0040.01216.66
7.4.90.0030.01316.39
7.4.80.0130.00719.39
7.4.70.0100.00716.55
7.4.60.0160.00316.39
7.4.50.0060.00616.60
7.4.40.0080.00816.42
7.4.10.0030.01314.67
7.4.00.0070.00915.12
7.3.330.0000.00713.02
7.3.320.0050.00013.09
7.3.310.0040.00416.19
7.3.300.0030.00316.11
7.3.290.0100.00716.22
7.3.280.0100.00716.20
7.3.260.0100.00916.29
7.3.230.0090.01616.57
7.3.210.0120.01216.56
7.3.200.0160.00616.23
7.3.190.0110.00616.38
7.3.180.0100.00716.58
7.3.170.0090.01616.39
7.3.160.0060.00916.27
7.3.130.0080.00415.01
7.3.120.0120.00615.00
7.3.110.0030.00914.77
7.3.100.0030.01014.80
7.3.90.0090.00914.59
7.3.80.0030.01014.76
7.3.70.0060.00414.76
7.3.60.0080.00814.76
7.3.50.0060.00614.71
7.3.40.0020.01214.88
7.3.30.0080.00714.78
7.3.20.0050.01015.64
7.3.10.0080.00715.77
7.3.00.0070.00915.83
7.2.330.0030.01316.84
7.2.320.0100.00716.59
7.2.310.0000.01716.75
7.2.300.0090.00916.77
7.2.290.0000.01816.41
7.2.260.0110.00714.81
7.2.250.0030.01514.82
7.2.240.0070.01015.02
7.2.230.0060.00614.93
7.2.220.0100.00715.09
7.2.210.0070.01015.26
7.2.200.0050.00815.02
7.2.190.0060.00814.86
7.2.180.0080.01015.18
7.2.170.0080.00814.85
7.2.160.0050.00914.93
7.2.150.0090.00316.04
7.2.140.0120.01015.86
7.2.130.0060.01016.10
7.2.120.0080.00815.99
7.2.110.0050.01016.18
7.2.100.0130.00615.89
7.2.90.0060.00816.22
7.2.80.0510.00816.16
7.2.70.0080.00916.11
7.2.60.0150.00215.97
7.2.50.0100.00716.09
7.2.40.0050.00916.04
7.2.30.0060.00716.01
7.2.20.0090.00416.02
7.2.10.0100.00516.08
7.2.00.0110.00816.06
7.1.330.0030.01415.60
7.1.320.0000.01015.99
7.1.310.0060.00615.81
7.1.300.0100.00514.81
7.1.290.0080.00714.97
7.1.280.0080.00714.91
7.1.270.0060.00814.75
7.1.260.0030.00915.07
7.1.250.0080.00414.84
7.1.240.0070.00715.80
7.1.230.0070.01115.88
7.1.220.0060.00915.57
7.1.210.0030.01015.44
7.1.200.0000.00915.72
7.1.190.0060.00615.73
7.1.180.0070.00415.83
7.1.170.0030.01215.57
7.1.160.0060.00915.92
7.1.150.0070.00315.72
7.1.140.0060.00615.77
7.1.130.0060.00615.63
7.1.120.0090.00015.83
7.1.110.0060.00616.03
7.1.100.0030.00615.91
7.1.90.0040.00815.62
7.1.80.0030.01015.69
7.1.70.0030.01015.90
7.1.60.0100.00015.86
7.1.50.0100.00315.92
7.1.40.0050.00315.55
7.1.30.0090.00015.84
7.1.20.0080.00415.88
7.1.10.0070.00715.80
7.1.00.0000.00915.41

preferences:
34.35 ms | 403 KiB | 5 Q