3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ (object) ["email" => "gffggfg"], (object) ["email" => "wefwef@test.it"], (object) ["email" => "wefewf"], ]; $array2 = [ (object) ["email" => "gffggfg@test.it"], (object) ["email" => "wefwef"], (object) ["email" => "wefewf"], ]; function concatArrays($arrays){ $buf = []; foreach($arrays as $arr){ foreach($arr as $v){ $buf[$v] = true; } } return array_keys($buf); } var_export( concatArrays([$array1, $array2]) );

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.130.0100.01017.84
8.4.120.0100.01022.44
8.4.110.0080.01222.21
8.4.100.0120.01017.71
8.4.90.0100.00818.15
8.4.80.0120.00917.82
8.4.70.0030.00619.86
8.4.60.0110.00518.77
8.4.50.0090.00719.99
8.4.40.0100.00718.00
8.4.30.0070.01520.39
8.4.20.0040.01219.68
8.4.10.0040.00424.01
8.3.260.0100.00916.72
8.3.250.0050.00419.05
8.3.240.0110.00716.66
8.3.230.0180.00216.53
8.3.220.0150.00416.86
8.3.210.0110.00616.54
8.3.200.0040.00416.50
8.3.190.0070.01216.79
8.3.180.0110.00716.62
8.3.170.0140.00418.82
8.3.160.0070.00316.61
8.3.150.0160.00320.75
8.3.140.0040.00416.45
8.3.130.0090.00018.62
8.3.120.0130.00318.91
8.3.110.0060.00320.94
8.3.100.0000.00816.71
8.3.90.0040.01126.77
8.3.80.0070.00316.47
8.3.70.0150.00616.75
8.3.60.0120.00618.53
8.3.50.0180.00318.71
8.3.40.0090.00918.51
8.3.30.0120.00319.09
8.3.20.0080.00024.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0060.00220.39
8.2.280.0100.00918.68
8.2.270.0130.00617.04
8.2.260.0060.01218.59
8.2.250.0060.00318.83
8.2.240.0130.00617.07
8.2.230.0030.00622.58
8.2.220.0000.00824.06
8.2.210.0120.00326.77
8.2.200.0040.00416.63
8.2.190.0100.01016.75
8.2.180.0120.00625.92
8.2.170.0030.01019.03
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00622.25
8.2.100.0030.00917.97
8.2.90.0060.00317.88
8.2.80.0050.00317.97
8.2.70.0000.00917.49
8.2.60.0000.00717.75
8.2.50.0040.00417.98
8.2.40.0080.00018.03
8.2.30.0030.00518.11
8.2.20.0040.00420.46
8.2.10.0040.00418.00
8.2.00.0070.00019.28
8.1.330.0050.00316.70
8.1.320.0100.00616.19
8.1.310.0000.00818.62
8.1.300.0090.00017.84
8.1.290.0090.00030.84
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0000.00823.88
8.1.230.0070.00719.00
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0090.00017.48
8.1.190.0000.00917.10
8.1.180.0000.00818.10
8.1.170.0070.00017.62
8.1.160.0000.00818.93
8.1.150.0060.00318.53
8.1.140.0000.00817.37
8.1.130.0030.00318.95
8.1.120.0050.00217.46
8.1.110.0060.00317.46
8.1.100.0040.00417.35
8.1.90.0020.00517.44
8.1.80.0070.00017.46
8.1.70.0080.00017.44
8.1.60.0090.00017.55
8.1.50.0030.01117.54
8.1.40.0130.00417.51
8.1.30.0210.00017.67
8.1.20.0180.00017.49
8.1.10.0170.00317.39
8.1.00.0150.00417.32
8.0.300.0050.00219.85
8.0.290.0040.00416.88
8.0.280.0070.00018.43
8.0.270.0050.00216.76
8.0.260.0030.00318.35
8.0.250.0000.00616.98
8.0.240.0000.00717.04
8.0.230.0030.00317.01
8.0.220.0080.00016.84
8.0.210.0000.00816.84
8.0.200.0030.00317.05
8.0.190.0100.00316.92
8.0.180.0090.00916.95
8.0.170.0120.00416.91
8.0.160.0140.00016.90
8.0.150.0130.00216.82
8.0.140.0060.00616.79
8.0.130.0080.00416.73
8.0.120.0070.00416.93
8.0.110.0100.00316.79
8.0.100.0080.00516.92
8.0.90.0090.00316.91
8.0.80.0080.00316.93
8.0.70.0060.00616.93
8.0.60.0030.00716.84
8.0.50.0070.00717.00
8.0.30.0130.00016.82
8.0.20.0100.00516.93
8.0.10.0100.00717.00
7.4.330.0020.00215.55
7.4.320.0040.00416.55
7.4.300.0070.00016.40
7.4.290.0110.00516.57
7.4.280.0000.00916.49
7.4.270.0060.00616.41
7.4.260.0090.00316.57
7.4.250.0200.00016.58
7.4.240.0080.00816.46
7.4.230.0080.00816.52
7.4.220.0110.00416.49
7.4.210.0080.00816.52
7.4.200.0100.00316.30
7.4.190.0070.00816.56
7.4.180.0130.00016.56
7.4.160.0080.00516.53
7.4.150.0150.00016.39
7.4.140.0130.00316.45
7.4.130.0120.00616.46
7.4.120.0050.01016.33
7.4.110.0150.00016.43
7.4.100.0090.00316.35
7.4.90.0120.00016.34
7.4.80.0120.00016.28
7.4.70.0090.00216.38
7.4.60.0090.00616.57
7.4.50.0110.00316.25
7.4.40.0150.00016.33
7.4.30.0130.00016.43
7.4.20.0090.00316.36
7.4.10.0110.00516.51
7.4.00.0050.00816.36

preferences:
34.95 ms | 403 KiB | 5 Q