3v4l.org

run code in 300+ PHP versions simultaneously
<?php $valores = [ ["1","1","1","1"], ["2","2","2","2"] ];//array of values $keys = ['k1','k2','k3','k4']; //array of keys $id = ['SpecialKey' => 'SpecialValue'];//new array of items I want to add var_export( array_map( fn($row) => array_combine($keys, $row) + $id, $valores ) );

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.120.0090.01117.84
8.4.110.0120.00917.60
8.4.100.0110.00918.84
8.4.90.0130.00620.32
8.4.80.0040.00419.09
8.4.70.0050.00318.68
8.4.60.0110.00819.05
8.4.50.0110.00818.54
8.4.40.0080.00017.81
8.4.30.0100.00018.94
8.4.20.0060.01318.89
8.4.10.0070.01321.73
8.3.250.0110.00916.54
8.3.240.0120.00816.39
8.3.230.0050.00316.80
8.3.220.0050.00319.09
8.3.210.0110.00716.63
8.3.200.0050.00316.54
8.3.190.0100.01016.96
8.3.180.0110.00818.70
8.3.170.0110.00316.76
8.3.160.0070.01118.84
8.3.150.0150.00317.12
8.3.140.0070.00718.83
8.3.130.0050.00316.65
8.3.120.0040.00419.00
8.3.110.0030.00620.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0000.00916.63
8.3.70.0110.00416.58
8.3.60.0040.01418.18
8.3.50.0160.00320.11
8.3.40.0130.00620.29
8.3.30.0040.01118.50
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0080.00026.16
8.2.290.0120.00716.43
8.2.280.0130.00718.49
8.2.270.0150.00316.48
8.2.260.0000.00816.35
8.2.250.0100.01016.70
8.2.240.0130.00618.90
8.2.230.0030.00722.58
8.2.220.0100.00737.54
8.2.210.0040.00426.77
8.2.200.0040.00418.42
8.2.190.0040.01116.75
8.2.180.0150.00325.92
8.2.170.0120.00319.05
8.2.160.0140.00022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00026.16
8.2.110.0080.00020.38
8.2.100.0000.01217.84
8.2.90.0040.00417.84
8.2.80.0040.00419.17
8.2.70.0050.00317.63
8.2.60.0000.00817.63
8.2.50.0060.00318.05
8.2.40.0080.00018.09
8.2.30.0070.00018.04
8.2.20.0070.00019.22
8.2.10.0070.00018.18
8.2.00.0040.00419.31
8.1.330.0050.00515.97
8.1.320.0090.00116.05
8.1.310.0030.00716.30
8.1.300.0090.00020.25
8.1.290.0050.00530.84
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0050.00323.97
8.1.230.0080.00320.91
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0030.00617.23
8.1.180.0080.00018.10
8.1.170.0060.00317.62
8.1.160.0040.00419.02
8.1.150.0050.00318.67
8.1.140.0050.00217.41
8.1.130.0000.00718.80
8.1.120.0000.00817.50
8.1.110.0040.00417.35
8.1.100.0050.00617.44
8.1.90.0060.01017.41
8.1.80.0120.00417.35
8.1.70.0070.00917.39
8.1.60.0130.00617.53
8.1.50.0100.00717.49
8.1.40.0100.00817.52
8.1.30.0000.01817.71
8.1.20.0080.01117.61
8.1.10.0130.00517.44
8.1.00.0130.00417.46
8.0.300.0040.00420.16
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0070.00016.79
8.0.260.0040.00418.29
8.0.250.0030.00316.89
8.0.240.0000.00816.98
8.0.230.0070.00817.06
8.0.220.0120.00416.89
8.0.210.0140.00216.89
8.0.200.0150.00416.80
8.0.190.0100.00516.88
8.0.180.0120.00416.97
8.0.170.0060.00916.91
8.0.160.0090.00916.84
8.0.150.0130.00516.89
8.0.140.0080.00816.91
8.0.130.0080.00816.90
8.0.120.0120.00216.97
8.0.110.0150.00016.93
8.0.100.0140.00216.90
8.0.90.0070.00916.85
8.0.80.0000.01716.89
8.0.70.0090.00616.93
8.0.60.0080.00816.73
8.0.50.0130.00416.86
8.0.30.0070.01016.83
8.0.20.0140.00316.98
8.0.10.0120.00516.96
7.4.330.0000.00615.55
7.4.320.0070.00016.52
7.4.300.0150.00316.63
7.4.290.0160.00216.61
7.4.280.0110.00616.64
7.4.270.0140.00616.51
7.4.260.0130.00016.50
7.4.250.0140.00216.61
7.4.240.0080.01016.56
7.4.230.0150.00316.49
7.4.220.0130.00316.45
7.4.210.0130.00216.52
7.4.200.0100.00416.60
7.4.190.0110.00416.44
7.4.180.0130.00216.66
7.4.160.0120.00416.63
7.4.150.0100.00516.52
7.4.140.0120.00416.36
7.4.130.0120.00516.48
7.4.120.0080.00716.44
7.4.110.0150.00016.50
7.4.100.0130.00416.50
7.4.90.0120.00416.33
7.4.80.0130.00316.45
7.4.70.0150.00016.50
7.4.60.0140.00216.48
7.4.50.0120.00216.24
7.4.40.0120.00316.20
7.4.30.0150.00016.50
7.4.20.0090.00616.43
7.4.10.0000.01516.31
7.4.00.0110.00616.59

preferences:
28.57 ms | 403 KiB | 5 Q