3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ "A" => "dataA1", "B" => "dataB1", "C" => "dataC1"]; $arr2 = [ "A" => "dataA2", "C" => "dataC2", "D" => "dataD2"]; $out = array_reduce( array_unique(array_merge(array_keys($arr1), array_keys($arr2))), function($c, $k) use($arr1, $arr2) { $c[$k] = array_merge( [$arr1[$k] ?? null], [$arr2[$k] ?? null], ); return $c; }, [] ); var_dump($out);

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.0140.00718.43
8.3.50.0150.00016.30
8.3.40.0120.00318.67
8.3.30.0060.00918.67
8.3.20.0080.00021.90
8.3.10.0050.00323.71
8.3.00.0040.00420.92
8.2.180.0200.00016.63
8.2.170.0140.00722.96
8.2.160.0110.00420.02
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00418.85
8.2.110.0030.00622.25
8.2.100.0060.00618.04
8.2.90.0080.00018.34
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0000.00817.50
8.2.50.0040.00418.10
8.2.40.0000.00719.42
8.2.30.0000.00719.31
8.2.20.0020.00518.11
8.2.10.0040.00419.24
8.2.00.0040.00419.18
8.1.280.0090.00925.92
8.1.270.0080.00018.82
8.1.260.0030.00626.35
8.1.250.0060.00328.09
8.1.240.0090.00023.98
8.1.230.0040.00720.85
8.1.220.0050.00317.78
8.1.210.0030.00618.77
8.1.200.0000.00817.52
8.1.190.0050.00317.36
8.1.180.0070.00418.10
8.1.170.0000.00818.70
8.1.160.0000.00718.88
8.1.150.0040.00418.90
8.1.140.0030.00520.82
8.1.130.0040.00420.16
8.1.120.0080.00017.42
8.1.110.0000.00717.50
8.1.100.0030.00617.43
8.1.90.0040.00417.43
8.1.80.0040.00417.37
8.1.70.0000.00717.38
8.1.60.0000.00817.60
8.1.50.0080.00417.37
8.1.40.0030.00617.57
8.1.30.0050.00317.69
8.1.20.0000.00717.54
8.1.10.0000.00917.53
8.1.00.0030.00517.51
8.0.300.0040.00420.05
8.0.290.0060.00316.63
8.0.280.0050.00318.44
8.0.270.0040.00417.14
8.0.260.0030.00318.45
8.0.250.0000.00717.03
8.0.240.0000.00816.83
8.0.230.0050.00216.95
8.0.220.0000.00716.91
8.0.210.0030.00316.92
8.0.200.0000.00616.95
8.0.190.0000.00716.96
8.0.180.0000.00916.92
8.0.170.0050.00316.91
8.0.160.0050.00216.96
8.0.150.0080.00016.80
8.0.140.0070.00016.70
8.0.130.0060.00013.28
8.0.120.0040.00416.84
8.0.110.0030.00516.95
8.0.100.0050.00316.69
8.0.90.0040.00416.84
8.0.80.0130.01116.84
8.0.70.0040.00416.84
8.0.60.0060.00316.86
8.0.50.0040.00416.89
8.0.30.0080.01617.00
8.0.20.0130.00717.40
8.0.10.0000.00817.05
8.0.00.0100.00816.73
7.4.330.0060.00015.55
7.4.320.0000.00616.61
7.4.300.0030.00316.61
7.4.290.0000.00716.59
7.4.280.0000.00716.50
7.4.270.0000.00716.48
7.4.260.0030.00316.52
7.4.250.0030.00316.57
7.4.240.0000.00716.59
7.4.230.0070.00016.44
7.4.220.0070.00016.71
7.4.210.0070.01216.54
7.4.200.0040.00416.42
7.4.160.0080.01116.43
7.4.140.0100.00917.86
7.4.130.0090.01216.62
7.4.120.0170.00716.51
7.4.110.0070.01016.55
7.4.100.0140.00316.45
7.4.90.0070.01016.48
7.4.80.0070.01019.39
7.4.70.0150.00416.56
7.4.60.0060.01616.21
7.4.50.0030.01416.60
7.4.40.0030.01316.43
7.4.10.0000.01814.83
7.4.00.0090.00614.82
7.3.330.0050.00013.28
7.3.320.0030.00313.29
7.3.310.0070.00016.45
7.3.300.0030.00316.43
7.3.290.0030.00316.33
7.3.280.0120.00516.28
7.3.260.0110.01016.42
7.3.230.0110.00616.39
7.3.210.0100.00716.39
7.3.200.0100.01016.52
7.3.190.0130.01016.56
7.3.180.0140.00716.24
7.3.170.0100.01016.28
7.3.160.0040.01216.45
7.3.130.0070.00714.77
7.3.120.0080.00714.54
7.3.110.0060.00914.94
7.3.100.0060.00914.91
7.3.90.0040.01215.02
7.3.80.0030.01314.79
7.3.70.0130.00615.00
7.3.60.0040.01114.95
7.3.50.0090.00614.99
7.3.40.0100.00714.69
7.3.30.0070.00314.59
7.3.20.0060.00916.53
7.3.10.0390.00515.34
7.3.00.0180.00615.50
7.2.330.0130.01016.43
7.2.320.0060.01216.24
7.2.310.0080.00816.36
7.2.300.0100.00616.29
7.2.290.0000.01616.42
7.2.260.0030.01214.57
7.2.250.0110.00614.75
7.2.240.0030.01014.74
7.2.230.0060.01114.98
7.2.220.0030.00614.66
7.2.210.0070.01015.11
7.2.200.0050.00514.86
7.2.190.0030.00614.86
7.2.180.0040.01114.85
7.2.170.0070.00714.98
7.2.160.0080.00414.80
7.2.150.0070.00716.59
7.2.140.0030.01016.84
7.2.130.0240.00715.74
7.2.120.0300.01115.68
7.2.110.0190.01315.70
7.2.100.0180.01115.36
7.2.90.0180.00715.79
7.2.80.0190.00515.52
7.2.70.0220.01015.32
7.2.60.0300.00415.51
7.2.50.0180.01115.62
7.2.40.1240.00815.61
7.2.30.0300.00615.66
7.2.20.0300.00715.30
7.2.10.0280.01315.75
7.2.00.0210.00915.83
7.1.330.0000.01315.55
7.1.320.0110.00415.68
7.1.310.0120.00615.69
7.1.300.0070.00715.63
7.1.290.0100.00615.48
7.1.280.0070.00715.71
7.1.270.0000.00915.57
7.1.260.0070.00715.64
7.1.250.0170.00814.57
7.1.240.0060.01215.34
7.1.230.0060.00915.47
7.1.220.0030.00615.59
7.1.210.0040.01115.71
7.1.200.0060.00615.73
7.1.190.0100.00315.33
7.1.180.0060.00615.69
7.1.170.0030.00615.50
7.1.160.0070.00715.36
7.1.150.0060.00615.35
7.1.140.0060.00315.61
7.1.130.0000.01415.52
7.1.120.0060.00615.43
7.1.110.0040.00415.68
7.1.100.0000.01215.59
7.1.90.0070.00315.47
7.1.80.0060.00615.63
7.1.70.0070.00315.56
7.1.60.0030.00615.51
7.1.50.0070.00315.46
7.1.40.0040.01115.57
7.1.30.0060.01015.36
7.1.20.0070.00715.71
7.1.10.0030.00915.73
7.1.00.0080.00415.32

preferences:
57.2 ms | 400 KiB | 5 Q