3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array("a" => "green", "b" => "brown", "c" => "blue"); $array2 = array("a" => "green", "c" => "blue2", "d" => "cyan"); $result = array_intersect_key($array1, $array2); print_r($result);

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.0150.00016.38
8.3.50.0090.00917.19
8.3.40.0150.00618.71
8.3.30.0070.00718.44
8.3.20.0040.00418.52
8.3.10.0030.00620.36
8.3.00.0040.00419.13
8.2.180.0100.01016.50
8.2.170.0120.00322.96
8.2.160.0090.00619.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00419.32
8.2.110.0070.00321.12
8.2.100.0060.00617.78
8.2.90.0030.00619.40
8.2.80.0040.00419.39
8.2.70.0030.00617.50
8.2.60.0030.00617.92
8.2.50.0060.00318.07
8.2.40.0070.00018.09
8.2.30.0040.00417.96
8.2.20.0090.00017.63
8.2.10.0040.00417.59
8.2.00.0000.00717.72
8.1.280.0120.00925.92
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01122.34
8.1.230.0120.00021.03
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00717.13
8.1.190.0040.00417.50
8.1.180.0040.00418.10
8.1.170.0000.00918.67
8.1.160.0000.00818.81
8.1.150.0040.00418.50
8.1.140.0000.00717.29
8.1.130.0000.00717.77
8.1.120.0050.00217.32
8.1.110.0020.00517.30
8.1.100.0040.00417.41
8.1.90.0030.00417.42
8.1.80.0000.00817.41
8.1.70.0060.00017.28
8.1.60.0050.00317.46
8.1.50.0000.00817.29
8.1.40.0000.00817.34
8.1.30.0040.00417.52
8.1.20.0000.00717.57
8.1.10.0040.00417.45
8.1.00.0070.00317.37
8.0.300.0000.00719.96
8.0.290.0070.00016.63
8.0.280.0030.00318.28
8.0.270.0000.00717.18
8.0.260.0030.00316.81
8.0.250.0040.00416.80
8.0.240.0000.00816.88
8.0.230.0000.00716.84
8.0.220.0030.00316.80
8.0.210.0000.00816.86
8.0.200.0000.00616.89
8.0.190.0000.00816.87
8.0.180.0040.00416.85
8.0.170.0030.00616.79
8.0.160.0030.00416.73
8.0.150.0000.00816.82
8.0.140.0050.00316.80
8.0.130.0050.00013.29
8.0.120.0000.00716.68
8.0.110.0000.00716.70
8.0.100.0050.00316.84
8.0.90.0000.00716.76
8.0.80.0060.01516.84
8.0.70.0040.00416.83
8.0.60.0040.00416.58
8.0.50.0000.00716.87
8.0.30.0090.00917.06
8.0.20.0080.01116.84
8.0.10.0070.00016.96
8.0.00.0100.01016.61
7.4.330.0030.00312.82
7.4.320.0060.00016.53
7.4.300.0040.00416.41
7.4.290.0000.00716.52
7.4.280.0050.00316.52
7.4.270.0040.00416.41
7.4.260.0030.00313.21
7.4.250.0080.00016.52
7.4.240.0000.00716.44
7.4.230.0070.00016.32
7.4.220.0080.00816.48
7.4.210.0060.00916.51
7.4.200.0000.00716.22
7.4.190.0030.00316.30
7.4.160.0120.00316.26
7.4.150.0060.01216.49
7.4.140.0080.00816.32
7.4.130.0120.00516.34
7.4.120.0080.00816.40
7.4.110.0150.00616.39
7.4.100.0100.00716.26
7.4.90.0160.00316.53
7.4.80.0000.01719.39
7.4.70.0070.01016.36
7.4.60.0130.00316.46
7.4.50.0080.00316.37
7.4.40.0090.00616.45
7.4.30.0060.01016.45
7.4.00.0070.01214.85
7.3.330.0030.00312.97
7.3.320.0000.00513.00
7.3.310.0030.00316.09
7.3.300.0070.00016.16
7.3.290.0120.00916.13
7.3.280.0120.00716.11
7.3.270.0030.01416.16
7.3.260.0040.01516.09
7.3.250.0150.00316.38
7.3.240.0060.01016.18
7.3.230.0080.00816.46
7.3.210.0100.00616.18
7.3.200.0100.00616.05
7.3.190.0190.00016.14
7.3.180.0110.00616.11
7.3.170.0120.00916.50
7.3.160.0090.01316.32
7.3.120.0090.00514.80
7.3.110.0060.01314.85
7.3.100.0070.01114.64
7.3.90.0060.00614.73
7.3.80.0060.00315.07
7.3.70.0000.00914.70
7.3.60.0000.01514.67
7.3.50.0030.01314.51
7.3.40.0060.00714.58
7.3.30.0080.00414.46
7.3.20.0090.00616.62
7.3.10.0070.00716.29
7.3.00.0040.01116.59
7.2.330.0080.01116.52
7.2.320.0090.00916.65
7.2.310.0070.01116.60
7.2.300.0130.00316.31
7.2.290.0030.01316.63
7.2.250.0040.01515.06
7.2.240.0070.01114.77
7.2.230.0060.00915.10
7.2.220.0070.00714.96
7.2.210.0070.01015.13
7.2.200.0120.00014.52
7.2.190.0070.00715.04
7.2.180.0050.00515.00
7.2.170.0030.01014.81
7.1.330.0080.00515.95
7.1.320.0090.00015.96
7.1.310.0040.01115.84
7.1.300.0030.01015.84
7.1.290.0030.00715.38
7.1.280.0130.00315.60
7.1.270.0120.00315.75
7.1.260.0110.00415.77
7.1.70.0070.00316.93
7.1.60.0030.02119.40
7.1.50.0070.01416.73
7.1.00.0070.06722.28
7.0.200.0000.00816.36
7.0.140.0030.07022.00
7.0.120.0070.06721.92
7.0.60.0170.06319.82
7.0.50.0130.07717.89
7.0.40.0000.09320.24
7.0.30.0200.06020.17
7.0.20.0330.07320.30
7.0.10.0230.04320.09
7.0.00.0070.07320.08
5.6.280.0000.07721.07
5.6.210.0170.07320.50
5.6.200.0070.05018.16
5.6.190.0000.05020.57
5.6.180.0370.07320.75
5.6.170.0230.04020.38
5.6.160.0100.08320.61
5.6.150.0000.04318.26
5.6.140.0100.06018.19
5.6.130.0070.08018.07
5.6.120.0070.08321.09
5.6.110.0030.04720.97
5.6.100.0070.08720.88
5.6.90.0100.08720.96
5.6.80.0130.07320.50
5.6.70.3970.03720.46
5.5.350.0370.06720.44
5.5.340.0030.08718.00
5.5.330.0030.07320.36
5.5.320.0100.04720.40
5.5.310.0270.03020.12
5.5.300.0130.07718.02
5.5.290.0070.08018.03
5.5.280.0100.03720.64
5.5.270.0270.06720.64
5.5.260.0130.08020.64
5.5.250.0170.07020.61
5.5.240.0070.08320.23
5.4.450.0000.04319.27
5.4.440.0070.04019.46
5.4.430.0030.04719.40
5.4.420.0030.04719.11
5.4.410.0030.04019.37
5.4.400.0070.03719.18
5.4.390.0030.03719.20
5.4.380.0100.03019.08
5.4.370.0030.04018.92
5.4.360.0000.04018.79
5.4.350.0030.03719.18
5.4.340.0070.03719.08
5.4.320.0000.04019.12
5.4.310.0070.04019.14
5.4.300.0000.04019.08
5.4.290.0070.03319.00
5.4.280.0030.04319.13
5.4.270.0100.06719.08
5.4.260.0030.07719.18
5.4.250.0030.04018.90
5.4.240.0100.07019.17
5.4.230.0000.05019.07
5.4.220.0070.04319.00
5.4.210.0100.06019.15
5.4.200.0070.04319.07
5.4.190.0030.06719.13
5.4.180.0000.04719.17
5.4.170.0070.07719.13
5.4.160.0100.07318.90
5.4.150.0170.06718.76
5.4.140.0130.05316.22
5.4.130.0100.07016.48
5.4.120.0100.04016.47
5.4.110.0030.05716.38
5.4.100.0070.04716.39
5.4.90.0000.05016.15
5.4.80.0070.04016.13
5.4.70.0170.07016.59
5.4.60.0030.03716.30
5.4.50.0100.06716.38
5.4.40.0000.06716.38
5.4.30.0070.06016.27
5.4.20.0100.06316.31
5.4.10.0000.04316.25
5.4.00.0070.07715.88
5.3.290.0070.03314.60
5.3.280.0100.07314.40
5.3.270.0030.07314.57
5.3.260.0130.06014.53
5.3.250.0100.07314.58
5.3.240.0030.06314.53
5.3.230.0070.03714.53
5.3.220.0070.06714.51
5.3.210.0030.08014.49
5.3.200.0130.03714.46
5.3.190.0100.04014.46
5.3.180.0030.04714.65
5.3.170.0100.03314.58
5.3.160.0100.06714.65
5.3.150.0070.05014.50
5.3.140.0170.03314.45
5.3.130.0200.05714.50
5.3.120.0070.07314.51
5.3.110.0100.07014.50
5.3.100.0130.04013.95
5.3.90.0030.07713.80
5.3.80.0100.06713.84
5.3.70.0130.06713.98
5.3.60.0100.05713.95
5.3.50.0000.05014.03
5.3.40.0000.04713.89
5.3.30.0030.04013.88
5.3.20.0070.05313.62
5.3.10.0070.06013.58
5.3.00.0030.07713.59
5.2.170.0030.06711.23
5.2.160.0030.03711.07
5.2.150.0070.03011.03
5.2.140.0070.06311.07
5.2.130.0100.06011.03
5.2.120.0130.05711.00
5.2.110.0030.03311.04
5.2.100.0030.05311.18
5.2.90.0000.06011.00
5.2.80.0070.05711.06
5.2.70.0030.06710.99
5.2.60.0170.05311.12
5.2.50.0100.05011.09
5.2.40.0030.06310.95
5.2.30.0030.05710.93
5.2.20.0000.06310.77
5.2.10.0100.05710.85
5.2.00.0070.05710.73
5.1.60.0030.0339.89
5.1.50.0000.0509.96
5.1.40.0070.0539.97
5.1.30.0030.02710.22
5.1.20.0070.02310.30
5.1.10.0100.03010.06
5.1.00.0030.05310.03
5.0.50.0030.0278.56
5.0.40.0030.0438.40
5.0.30.0070.0338.19
5.0.20.0030.0408.16
5.0.10.0070.0378.18
5.0.00.0070.0508.29
4.4.90.0000.0177.71
4.4.80.0030.0177.71
4.4.70.0030.0207.71
4.4.60.0000.0377.71
4.4.50.0070.0337.71
4.4.40.0030.0377.71
4.4.30.0070.0307.71
4.4.20.0070.0237.71
4.4.10.0030.0237.71
4.4.00.0000.0337.71
4.3.110.0000.0407.71
4.3.100.0000.0377.71
4.3.90.0070.0207.71
4.3.80.0000.0307.71
4.3.70.0030.0237.71
4.3.60.0000.0377.71
4.3.50.0000.0277.71
4.3.40.0000.0277.71
4.3.30.0070.0107.71
4.3.20.0000.0407.71
4.3.10.0000.0207.71
4.3.00.0000.0337.71

preferences:
43.6 ms | 401 KiB | 5 Q