3v4l.org

run code in 300+ PHP versions simultaneously
<?php $column_names= [ 0=>'student_id', 1=>'college_name', 2=>'name' ]; $student_details=[ 0=>[ 0=>'1', 1=>'xxx', 2=>'aaa' ], 1=>[ 0=>'2', 1=>'yyy', 2=>'bbb' ] ]; foreach($student_details as &$sub){ $sub = array_combine($column_names, $sub); } Var_dump($student_details);

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.0080.00818.06
8.3.50.0180.00418.16
8.3.40.0070.01018.42
8.3.30.0090.00618.64
8.3.20.0000.00819.09
8.3.10.0000.00823.61
8.3.00.0020.00520.60
8.2.180.0070.00718.43
8.2.170.0070.00722.96
8.2.160.0030.01022.21
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00019.82
8.2.120.0040.00426.35
8.2.110.0050.00519.36
8.2.100.0000.01117.89
8.2.90.0040.00417.84
8.2.80.0050.00318.04
8.2.70.0000.00917.80
8.2.60.0000.00718.16
8.2.50.0060.00318.10
8.2.40.0040.00419.32
8.2.30.0040.00419.11
8.2.20.0040.00418.04
8.2.10.0000.00918.09
8.2.00.0030.00517.76
8.1.280.0080.00625.92
8.1.270.0030.01322.12
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00617.22
8.1.230.0070.00422.68
8.1.220.0040.00417.88
8.1.210.0030.00519.10
8.1.200.0030.00617.35
8.1.190.0030.00617.22
8.1.180.0050.00318.10
8.1.170.0000.00818.60
8.1.160.0000.00718.87
8.1.150.0080.00018.84
8.1.140.0040.00417.34
8.1.130.0030.00520.14
8.1.120.0000.00717.51
8.1.110.0040.00417.47
8.1.100.0000.00717.43
8.1.90.0040.00417.34
8.1.80.0040.00417.45
8.1.70.0080.00017.45
8.1.60.0080.00017.46
8.1.50.0030.00517.52
8.1.40.0000.00817.38
8.1.30.0070.00317.54
8.1.20.0040.00417.63
8.1.10.0000.00717.39
8.1.00.0000.00817.21
8.0.300.0000.00719.64
8.0.290.0060.00316.63
8.0.280.0030.00318.43
8.0.270.0000.00716.80
8.0.260.0000.00718.43
8.0.250.0030.00316.86
8.0.240.0000.00616.94
8.0.230.0050.00216.91
8.0.220.0030.00316.77
8.0.210.0000.00716.75
8.0.200.0000.00816.94
8.0.190.0040.00316.93
8.0.180.0040.00416.93
8.0.170.0040.00416.88
8.0.160.0070.00016.87
8.0.150.0030.00416.82
8.0.140.0040.00416.81
8.0.130.0030.00313.30
8.0.120.0030.00516.84
8.0.110.0040.00416.70
8.0.100.0040.00416.73
8.0.90.0040.00416.87
8.0.80.0080.00816.85
8.0.70.0050.00216.82
8.0.60.0040.00416.81
8.0.50.0040.00416.86
8.0.30.0100.01017.01
8.0.20.0160.00317.40
8.0.10.0070.00016.95
8.0.00.0060.01216.62
7.4.330.0050.00015.55
7.4.320.0000.00616.44
7.4.300.0070.00016.58
7.4.290.0040.00416.63
7.4.280.0040.00416.59
7.4.270.0030.00316.47
7.4.260.0070.00016.48
7.4.250.0040.00416.57
7.4.240.0000.00716.50
7.4.230.0040.00416.33
7.4.220.0080.00016.57
7.4.210.0070.01016.57
7.4.200.0000.00716.43
7.4.160.0100.00916.54
7.4.140.0130.00917.86
7.4.130.0070.02516.43
7.4.120.0080.01016.47
7.4.110.0080.01116.23
7.4.100.0110.00916.31
7.4.90.0070.01116.35
7.4.80.0140.00419.39
7.4.70.0150.00716.49
7.4.60.0030.01416.52
7.4.50.0120.00616.32
7.4.40.0080.00816.34
7.4.00.0080.00914.75
7.3.330.0020.00213.00
7.3.320.0030.00313.19
7.3.310.0030.00516.33
7.3.300.0030.00316.16
7.3.290.0000.00716.19
7.3.280.0070.00916.20
7.3.260.0060.01416.39
7.3.240.0090.01016.37
7.3.230.0130.00416.25
7.3.210.0120.00616.32
7.3.200.0220.00016.30
7.3.190.0100.00616.34
7.3.180.0150.00616.15
7.3.170.0100.01316.55
7.3.160.0060.01216.60
7.3.120.0120.00014.66
7.3.110.0060.01114.59
7.3.100.0060.00314.77
7.3.90.0030.01214.57
7.3.80.0110.00314.63
7.3.70.0100.00714.76
7.3.60.0130.00414.78
7.3.50.0090.00014.75
7.3.40.0060.00914.58
7.3.30.0040.01114.82
7.3.20.0080.00416.46
7.3.10.0000.01416.66
7.3.00.0060.00316.66
7.2.330.0090.00916.61
7.2.320.0110.01216.57
7.2.310.0120.00616.69
7.2.300.0070.01016.86
7.2.290.0120.00816.64
7.2.250.0060.01314.91
7.2.240.0130.00715.00
7.2.230.0040.00814.89
7.2.220.0070.00714.78
7.2.210.0040.01214.92
7.2.200.0060.01015.07
7.2.190.0000.01315.00
7.2.180.0050.00514.77
7.2.170.0100.00315.04
7.2.110.0410.00614.29
7.2.100.0670.00314.47
7.2.90.0570.00914.61
7.2.80.0870.00714.41
7.2.70.0590.01314.57
7.2.60.0640.00315.09
7.2.50.0900.00914.79
7.2.40.0610.00614.80
7.2.30.1360.00315.12
7.2.20.0950.01014.91
7.2.10.0740.00914.50
7.2.00.0750.00315.11
7.1.330.0110.00415.80
7.1.320.0030.01015.63
7.1.310.0000.01715.92
7.1.300.0030.00615.48
7.1.290.0030.01015.79
7.1.280.0110.00715.95
7.1.270.0070.00715.71
7.1.260.0040.00815.66
7.1.230.0930.01313.52
7.1.220.0210.01513.73
7.1.210.0650.01313.83
7.1.200.0600.00713.80
7.1.190.0840.01213.79
7.1.180.0680.00613.79
7.1.170.0710.00313.82
7.1.160.0850.01313.76
7.1.150.0570.00713.80
7.1.140.0870.00913.47
7.1.130.0770.00713.70
7.1.120.1280.01013.60
7.1.110.0130.01013.28
7.1.100.0120.00613.73
7.1.90.0090.01213.79
7.1.80.0120.00913.62
7.1.70.0130.00813.73
7.1.60.0330.00731.79
7.1.50.1500.01031.43
7.1.40.2970.00731.70
7.1.30.2090.01931.59
7.1.20.1860.01731.71
7.1.10.2430.01013.26
7.1.00.1610.01013.66
5.6.380.0130.00513.87

preferences:
30.61 ms | 400 KiB | 5 Q