3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( "one" => 1, "two" => array(2), "tres" => array ( 1,2) ); $b = array( "one" => array(), "two" => array(), "tres" => null ); var_dump(array_intersect_key( $a, $b ));

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.40.0150.00018.61
8.3.30.0110.00419.00
8.3.20.0050.00320.07
8.3.10.0080.00020.23
8.3.00.0040.00419.25
8.2.170.0090.00622.96
8.2.160.0070.00720.55
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0040.00422.28
8.2.110.0070.00319.30
8.2.100.0070.00418.09
8.2.90.0000.00819.00
8.2.80.0040.00417.97
8.2.70.0040.00417.35
8.2.60.0000.00817.93
8.2.50.0070.00418.07
8.2.40.0000.00818.03
8.2.30.0060.00317.97
8.2.20.0040.00417.60
8.2.10.0070.00017.96
8.2.00.0000.00817.54
8.1.270.0090.00024.02
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00020.87
8.1.230.0060.00619.06
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0000.00818.54
8.1.160.0000.00721.89
8.1.150.0070.00018.69
8.1.140.0070.00017.32
8.1.130.0000.00717.73
8.1.120.0000.00817.28
8.1.110.0070.00017.42
8.1.100.0030.00317.44
8.1.90.0000.00717.38
8.1.80.0040.00417.27
8.1.70.0000.00817.32
8.1.60.0040.00417.43
8.1.50.0040.00417.41
8.1.40.0080.00017.31
8.1.30.0090.00017.38
8.1.20.0030.00617.56
8.1.10.0050.00317.42
8.1.00.0040.00417.28
8.0.300.0030.00518.77
8.0.290.0080.00016.63
8.0.280.0070.00018.25
8.0.270.0070.00017.05
8.0.260.0060.00017.17
8.0.250.0000.00716.82
8.0.240.0030.00316.81
8.0.230.0030.00316.83
8.0.220.0030.00516.80
8.0.210.0030.00316.69
8.0.200.0000.00716.83
8.0.190.0040.00416.83
8.0.180.0080.00316.84
8.0.170.0040.00416.76
8.0.160.0050.00216.84
8.0.150.0030.00316.76
8.0.140.0000.00816.77
8.0.130.0030.00313.29
8.0.120.0090.00016.68
8.0.110.0000.00716.74
8.0.100.0000.00716.85
8.0.90.0000.00816.70
8.0.80.0040.01116.91
8.0.70.0040.00416.86
8.0.60.0000.00716.63
8.0.50.0070.00016.84
8.0.30.0090.00916.88
8.0.20.0120.00817.40
8.0.10.0070.00016.89
8.0.00.0120.00716.71
7.4.330.0000.00515.03
7.4.320.0000.00716.57
7.4.300.0030.00316.41
7.4.290.0070.00016.41
7.4.280.0060.00316.42
7.4.270.0040.00416.45
7.4.260.0060.00016.45
7.4.250.0070.00016.41
7.4.240.0030.00416.55
7.4.230.0030.00316.51
7.4.220.0150.00616.45
7.4.210.0030.01016.56
7.4.200.0070.00016.23
7.4.160.0110.00916.23
7.4.150.0030.01617.40
7.4.140.0110.00617.86
7.4.130.0090.01016.39
7.4.120.0060.01116.42
7.4.110.0040.01416.31
7.4.100.0090.00916.55
7.4.90.0120.00616.58
7.4.80.0040.01519.39
7.4.70.0040.01216.38
7.4.60.0120.00616.45
7.4.50.0000.00416.14
7.4.40.0100.00616.53
7.4.30.0060.01016.50
7.4.00.0030.00914.82
7.3.330.0020.00213.00
7.3.320.0030.00312.98
7.3.310.0000.00716.05
7.3.300.0040.00416.06
7.3.290.0110.00416.16
7.3.280.0070.00816.10
7.3.270.0070.01417.40
7.3.260.0060.01116.21
7.3.250.0120.00616.26
7.3.240.0080.00816.21
7.3.230.0070.01016.39
7.3.210.0070.01116.05
7.3.200.0030.01319.39
7.3.190.0090.00916.36
7.3.180.0130.00316.04
7.3.170.0120.00416.27
7.3.160.0100.00616.14
7.2.330.0030.01316.45
7.2.320.0110.00716.25
7.2.310.0180.00516.52
7.2.300.0060.01216.42
7.2.290.0140.01016.54
7.2.00.0060.00618.96
7.1.100.0050.00317.69
7.1.70.0020.00716.88
7.1.60.0060.01619.32
7.1.50.0100.01316.93
7.1.00.0000.08022.57
7.0.200.0080.00016.78
7.0.140.0000.07722.12
7.0.60.0130.04719.85
7.0.50.0000.04317.88
7.0.40.0030.06320.23
7.0.30.0370.07320.22
7.0.20.0370.07720.18
7.0.10.0000.05020.09
7.0.00.0030.09020.16
5.6.280.0030.07321.12
5.6.210.0170.05720.66
5.6.200.0030.05318.10
5.6.190.0070.08020.56
5.6.180.0300.07020.64
5.6.170.0400.07020.35
5.6.160.0130.06720.46
5.6.150.0100.07718.12
5.6.140.0070.06718.18
5.6.130.0070.05318.21
5.6.120.0100.04021.06
5.6.110.0100.08320.91
5.6.100.0100.08321.10
5.6.90.0030.08720.96
5.6.80.0070.08020.36
5.5.350.0200.07720.52
5.5.340.0070.03717.91
5.5.330.0000.05720.37
5.5.320.0300.04320.33
5.5.310.0270.04320.30
5.5.300.0100.07717.96
5.5.290.0170.07317.97
5.5.280.0170.07720.93
5.5.270.0030.04720.86
5.5.260.0100.07720.86
5.5.250.0100.05720.68
5.5.240.0130.06320.18
5.4.450.1000.04719.41
5.4.440.0130.06319.24
5.4.430.0130.05719.47
5.4.420.0670.00019.50
5.4.410.0670.00019.24
5.4.400.0630.00019.13
5.4.390.0630.00019.09
5.4.380.0630.00019.00
5.4.370.0630.00018.96
5.4.360.0630.00019.00
5.4.350.0630.00019.05
5.4.340.0630.00018.98
5.4.320.0070.03612.45
5.4.310.0050.04112.45
5.4.300.0050.03812.45
5.4.290.0050.03812.45
5.4.280.0070.03412.34
5.4.270.0040.03812.34
5.4.260.0050.03912.34
5.4.250.0080.03512.35
5.4.240.0080.03512.34
5.4.230.0080.03512.34
5.4.220.0060.03512.34
5.4.210.0060.03612.34
5.4.200.0040.03812.34
5.4.190.0060.03412.34
5.4.180.0090.03212.33
5.4.170.0070.04012.35
5.4.160.0070.03512.34
5.4.150.0070.04012.34
5.4.140.0040.03812.02
5.4.130.0080.03912.01
5.4.120.0090.03611.97
5.4.110.0040.03611.96
5.4.100.0080.03211.96
5.4.90.0060.04111.96
5.4.80.0080.03511.96
5.4.70.0070.03311.96
5.4.60.0080.03211.96
5.4.50.0050.03911.96
5.4.40.0040.03511.95
5.4.30.0050.03511.94
5.4.20.0080.03811.95
5.4.10.0040.03511.94
5.4.00.0090.03111.43
5.3.290.0050.03812.80
5.3.280.0060.03612.71
5.3.270.0090.03512.72
5.3.260.0070.04312.71
5.3.250.0060.03812.72
5.3.240.0060.03512.72
5.3.230.0050.03812.71
5.3.220.0050.03612.68
5.3.210.0060.03812.68
5.3.200.0050.03612.68
5.3.190.0080.03412.68
5.3.180.0030.04012.67
5.3.170.0040.03812.67
5.3.160.0110.03812.68
5.3.150.0100.03512.68
5.3.140.0030.03912.66
5.3.130.0040.04112.66
5.3.120.0030.04112.66
5.3.110.0040.04212.66
5.3.100.0080.04412.12
5.3.90.0040.03812.09
5.3.80.0050.03712.07
5.3.70.0080.03412.07
5.3.60.0090.03312.06
5.3.50.0080.03412.00
5.3.40.0070.03512.00
5.3.30.0070.03311.94
5.3.20.0060.03411.72
5.3.10.0040.03611.69
5.3.00.0050.03711.67
5.2.170.0050.0359.18
5.2.160.0050.0289.18
5.2.150.0020.0339.18
5.2.140.0060.0309.17
5.2.130.0050.0279.13
5.2.120.0040.0289.13
5.2.110.0060.0359.14
5.2.100.0050.0329.14
5.2.90.0050.0289.14
5.2.80.0050.0299.13
5.2.70.0070.0309.13
5.2.60.0080.0269.09
5.2.50.0020.0329.05
5.2.40.0040.0359.04
5.2.30.0060.0289.01
5.2.20.0030.0299.00
5.2.10.0030.0298.92
5.2.00.0070.0268.77
5.1.60.0040.0248.06
5.1.50.0060.0228.05
5.1.40.0040.0278.04
5.1.30.0040.0258.39
5.1.20.0060.0308.41
5.1.10.0080.0268.13
5.1.00.0040.0258.14
5.0.50.0010.0246.62
5.0.40.0050.0216.48
5.0.30.0060.0346.29
5.0.20.0040.0186.27
5.0.10.0030.0236.24
5.0.00.0030.0306.23
4.4.90.0010.0164.78
4.4.80.0030.0184.76
4.4.70.0010.0164.75
4.4.60.0020.0154.75
4.4.50.0030.0144.77
4.4.40.0020.0254.71
4.4.30.0050.0144.76
4.4.20.0030.0154.85
4.4.10.0050.0134.85
4.4.00.0040.0244.76
4.3.110.0060.0124.67
4.3.100.0020.0154.66
4.3.90.0050.0124.63
4.3.80.0010.0254.58
4.3.70.0020.0154.63
4.3.60.0020.0154.62
4.3.50.0010.0174.63
4.3.40.0020.0244.54
4.3.30.0040.0233.28
4.3.20.0000.0173.26
4.3.10.0000.0233.22
4.3.00.0000.01316.59

preferences:
40.11 ms | 400 KiB | 5 Q