3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array("a" => "red", "b" => "green"); $y = array("c" => "blue", "d" => "yellow"); $c = array(5, 6, 7, 8); $d = array(9, 10, 11, 12); print_r(array_merge($x, $y, $d, $c)); // union of $x and $y ?>

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.0050.00420.32
8.4.110.0130.00618.67
8.4.100.0080.01217.57
8.4.90.0120.00720.34
8.4.80.0040.00418.92
8.4.70.0110.00620.52
8.4.60.0080.00920.70
8.4.50.0110.01022.07
8.4.40.0040.01519.18
8.4.30.0100.01019.43
8.4.20.0060.01219.44
8.4.10.0080.00819.32
8.3.250.0110.00818.72
8.3.240.0040.00416.49
8.3.230.0100.00616.75
8.3.220.0030.00420.76
8.3.210.0040.00416.54
8.3.200.0080.00116.59
8.3.190.0110.00718.73
8.3.180.0140.00518.85
8.3.170.0070.00717.07
8.3.160.0150.00316.33
8.3.150.0110.00816.38
8.3.140.0150.00418.77
8.3.130.0040.00416.64
8.3.120.0030.00620.71
8.3.110.0060.00320.94
8.3.100.0150.00016.43
8.3.90.0110.00426.77
8.3.80.0090.00018.56
8.3.70.0120.00918.28
8.3.60.0140.00316.63
8.3.50.0080.01316.48
8.3.40.0110.00418.54
8.3.30.0070.00718.42
8.3.20.0070.00020.12
8.3.10.0140.00020.76
8.3.00.0030.00617.68
8.2.290.0100.00917.04
8.2.280.0090.00820.07
8.2.270.0080.00016.63
8.2.260.0100.00716.95
8.2.250.0140.00316.84
8.2.240.0040.00417.23
8.2.230.0030.00722.58
8.2.220.0080.00024.06
8.2.210.0110.00726.77
8.2.200.0060.00316.63
8.2.190.0070.00716.58
8.2.180.0140.00716.32
8.2.170.0140.00722.96
8.2.160.0100.00320.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.39
8.2.120.0060.00326.35
8.2.110.0030.00622.04
8.2.100.0080.00417.72
8.2.90.0030.00522.37
8.2.80.0000.00817.97
8.2.70.0060.00317.80
8.2.60.0040.00417.97
8.2.50.0080.00418.10
8.2.40.0030.00520.42
8.2.30.0000.00719.08
8.2.20.0040.00417.98
8.2.10.0000.00717.98
8.2.00.0040.00418.02
8.1.330.0120.00715.91
8.1.320.0120.00722.06
8.1.310.0120.00616.48
8.1.300.0090.00016.04
8.1.290.0070.00330.84
8.1.280.0170.00025.92
8.1.270.0070.00021.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00523.92
8.1.230.0030.01023.86
8.1.220.0040.00417.79
8.1.210.0040.00418.96
8.1.200.0050.00317.35
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0030.00618.37
8.1.160.0040.00418.98
8.1.150.0030.00618.67
8.1.140.0000.00919.42
8.1.130.0050.00217.37
8.1.120.0040.00417.43
8.1.110.0030.00617.27
8.1.100.0030.00517.27
8.1.90.0040.00417.36
8.1.80.0040.00417.30
8.1.70.0000.00717.26
8.1.60.0050.00517.44
8.1.50.0000.00717.43
8.1.40.0080.00317.36
8.1.30.0060.00317.64
8.1.20.0000.00817.49
8.1.10.0000.00717.39
8.1.00.0000.00717.22
8.0.300.0000.01020.03
8.0.290.0040.00416.75
8.0.280.0000.00718.28
8.0.270.0030.00316.65
8.0.260.0070.00018.51
8.0.250.0000.00616.94
8.0.240.0030.00516.96
8.0.230.0000.00716.89
8.0.220.0000.00716.85
8.0.210.0030.00316.77
8.0.200.0060.00016.86
8.0.190.0080.00016.86
8.0.180.0040.00416.90
8.0.170.0070.00016.86
8.0.160.0030.00716.88
8.0.150.0040.00416.85
8.0.140.0050.00316.79
8.0.130.0030.00313.27
8.0.120.0000.00716.77
8.0.110.0040.00416.76
8.0.100.0000.00716.64
8.0.90.0070.00016.80
8.0.80.0030.01716.82
8.0.70.0040.00416.67
8.0.60.0030.00316.77
8.0.50.0040.00416.64
8.0.30.0110.00817.12
8.0.20.0070.01117.40
8.0.10.0070.00016.75
8.0.00.0110.00716.78
7.4.330.0050.00015.55
7.4.320.0030.00316.57
7.4.300.0040.00416.57
7.4.290.0070.00016.52
7.4.280.0030.00516.51
7.4.270.0000.00816.58
7.4.260.0080.00016.55
7.4.250.0000.00716.54
7.4.240.0040.00416.42
7.4.230.0050.00216.61
7.4.220.0070.01116.52
7.4.210.0090.00616.39
7.4.200.0000.00716.61
7.4.160.0140.00316.37
7.4.150.0000.01717.40
7.4.140.0110.00817.86
7.4.130.0090.01116.32
7.4.120.0100.00916.30
7.4.110.0090.00916.53
7.4.100.0180.00416.43
7.4.90.0110.00616.32
7.4.80.0060.01219.39
7.4.70.0000.02316.36
7.4.60.0070.01016.45
7.4.50.0070.01016.38
7.4.40.0040.01516.40
7.4.30.0190.00316.37
7.4.00.0050.00915.11
7.3.330.0040.00412.98
7.3.320.0020.00212.96
7.3.310.0030.00315.97
7.3.300.0030.00315.98
7.3.290.0080.00816.16
7.3.280.0090.00916.10
7.3.270.0090.00917.40
7.3.260.0090.00916.17
7.3.250.0100.01116.23
7.3.240.0100.00716.20
7.3.230.0080.00816.10
7.3.210.0090.00616.05
7.3.200.0130.00316.50
7.3.190.0120.00616.53
7.3.180.0040.01816.49
7.3.170.0110.00416.45
7.3.160.0170.00616.05
7.2.330.0110.00516.42
7.2.320.0130.00316.35
7.2.310.0130.00316.34
7.2.300.0060.01116.24
7.2.290.0040.01116.49
7.2.60.0070.00716.64
7.1.200.0030.01215.66
7.1.80.2460.02216.23
7.1.70.0030.01715.39
7.1.60.0280.01333.32
7.1.50.2520.02232.94
7.1.40.0240.01532.46
7.1.30.0230.01232.59
7.1.20.0250.01032.56
7.1.10.0070.02114.48
7.1.00.2570.01114.76
7.0.200.3270.00914.85
7.0.190.0120.00914.68
7.0.180.0090.01414.36
7.0.170.0100.00614.43
7.0.160.2150.00814.27
7.0.150.0130.01714.29
7.0.140.0200.01214.27
7.0.130.0080.01014.82
7.0.120.0070.01114.78
7.0.110.2120.01014.46
7.0.100.2190.00914.49
7.0.90.2410.01314.50
7.0.80.2400.01114.50
7.0.70.0170.00814.61
7.0.60.0410.01414.04
7.0.50.2480.01014.65
7.0.40.0050.01514.71
7.0.30.0100.01514.52
7.0.20.2140.01214.48
7.0.10.2270.01814.63
7.0.00.2620.00614.76

preferences:
122.97 ms | 403 KiB | 5 Q