3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['0' => 1, '1' => 2, '2' => 3]; $b = ['0' => 4, '1' => 5, '2' => 6]; $newArray = array_map('combine',array_map(null, $a, $b)); function combine($n){ return array_combine(array('a','b'),$n); } print_r($newArray);

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.4.20.0040.01620.80
8.4.10.0090.00017.70
8.3.150.0090.00918.25
8.3.140.0080.00016.92
8.3.130.0070.00318.55
8.3.120.0040.00420.48
8.3.110.0030.00520.94
8.3.100.0050.00516.31
8.3.90.0100.01026.77
8.3.80.0030.00716.50
8.3.70.0040.01216.75
8.3.60.0100.01018.20
8.3.50.0110.00517.32
8.3.40.0110.00418.71
8.3.30.0120.00318.54
8.3.20.0080.00020.64
8.3.10.0040.00421.73
8.3.00.0040.00423.61
8.2.270.0050.00317.34
8.2.260.0070.00716.60
8.2.250.0080.00016.73
8.2.240.0040.00419.09
8.2.230.0000.00822.58
8.2.220.0090.00024.06
8.2.210.0070.00726.77
8.2.200.0050.00516.75
8.2.190.0090.00616.58
8.2.180.0070.01116.38
8.2.170.0140.00722.96
8.2.160.0070.00720.39
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00618.77
8.2.110.0100.00022.24
8.2.100.0040.00817.72
8.2.90.0080.00017.91
8.2.80.0060.00317.97
8.2.70.0000.00817.80
8.2.60.0040.00418.03
8.2.50.0060.00318.10
8.2.40.0060.00319.37
8.2.30.0040.00419.16
8.2.20.0050.00317.91
8.2.10.0040.00419.23
8.2.00.0050.00219.09
8.1.310.0040.01418.13
8.1.300.0040.00418.26
8.1.290.0040.00818.88
8.1.280.0070.01125.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00323.97
8.1.230.0090.00322.63
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0090.00017.35
8.1.180.0030.00618.10
8.1.170.0000.00818.65
8.1.160.0040.00418.67
8.1.150.0040.00418.82
8.1.140.0000.00718.69
8.1.130.0050.00219.04
8.1.120.0000.00717.39
8.1.110.0000.00817.37
8.1.100.0030.00517.38
8.1.90.0030.00617.30
8.1.80.0030.00317.40
8.1.70.0000.00717.39
8.1.60.0060.00317.43
8.1.50.0040.00417.35
8.1.40.0050.00317.41
8.1.30.0100.00017.51
8.1.20.0060.00617.61
8.1.10.0040.00417.32
8.1.00.0000.00817.43
8.0.300.0060.00319.65
8.0.290.0030.00716.58
8.0.280.0000.00718.31
8.0.270.0000.00716.73
8.0.260.0000.00718.43
8.0.250.0090.00016.82
8.0.240.0040.00416.92
8.0.230.0070.00016.91
8.0.220.0040.00416.84
8.0.210.0000.00716.82
8.0.200.0070.00016.73
8.0.190.0040.00416.76
8.0.180.0030.00316.84
8.0.170.0040.00416.81
8.0.160.0000.00716.91
8.0.150.0040.00416.74
8.0.140.0070.00016.66
8.0.130.0050.00013.26
8.0.120.0000.00716.79
8.0.110.0040.00416.64
8.0.100.0040.00416.85
8.0.90.0040.00416.77
8.0.80.0110.00716.77
8.0.70.0080.00016.59
8.0.60.0080.00016.71
8.0.50.0050.00316.63
8.0.30.0120.00617.00
8.0.20.0130.00617.10
8.0.10.0000.00716.79
8.0.00.0100.01016.61
7.4.330.0000.00615.55
7.4.320.0030.00316.45
7.4.300.0000.00716.52
7.4.290.0040.00416.53
7.4.280.0000.00916.29
7.4.270.0040.00416.48
7.4.260.0070.00016.30
7.4.250.0030.00316.43
7.4.240.0040.00416.49
7.4.230.0050.00516.55
7.4.220.0030.00316.33
7.4.210.0080.00716.53
7.4.200.0070.00016.42
7.4.160.0060.00916.29
7.4.130.0140.00316.31
7.4.120.0090.00716.48
7.4.110.0100.00716.48
7.4.100.0040.01316.40
7.4.90.0060.01216.38
7.4.80.0090.00919.39
7.4.70.0080.00816.44
7.4.60.0170.00016.44
7.4.50.0000.01416.41
7.4.40.0070.01016.44
7.4.00.0060.00914.95
7.3.330.0050.00013.11
7.3.320.0030.00313.04
7.3.310.0000.00716.21
7.3.300.0030.00316.19
7.3.290.0000.00616.07
7.3.280.0090.00916.14
7.3.260.0100.00816.21
7.3.240.0060.01416.32
7.3.230.0070.01016.30
7.3.210.0110.01216.42
7.3.200.0150.00316.37
7.3.190.0000.01616.39
7.3.180.0080.00816.45
7.3.170.0030.01416.25
7.3.160.0120.01216.11
7.3.60.0040.00714.34
7.3.50.0070.00514.71
7.3.40.0000.01214.61
7.3.30.0060.01014.71
7.3.20.0100.01016.47
7.3.10.0090.00416.56
7.3.00.0070.00516.50
7.2.330.0160.00416.30
7.2.320.0120.01216.59
7.2.310.0090.00616.45
7.2.300.0110.00616.48
7.2.290.0130.00616.64
7.2.190.0060.00614.59
7.2.180.0030.01114.97
7.2.170.0000.01214.66
7.2.160.0070.00414.80
7.2.150.0040.01216.56
7.2.140.0070.01016.66
7.2.130.0050.01016.70
7.2.120.0100.00716.54
7.2.110.0080.00416.94
7.2.100.0080.00516.71
7.2.90.0090.00616.67
7.2.80.0120.00316.90
7.2.70.0120.00316.77
7.2.60.0100.01014.89
7.2.50.0150.00016.83
7.2.40.0080.00616.37
7.2.30.0090.01016.78
7.2.20.0100.00316.91
7.2.10.0070.01016.82
7.2.00.0110.00316.61
7.1.300.0200.00515.64
7.1.290.0050.00515.86
7.1.280.0060.00615.67
7.1.270.0110.00415.68
7.1.260.0070.01415.73
7.1.250.0120.00515.59

preferences:
28.59 ms | 403 KiB | 5 Q