3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_1 = array( 'ana' => 'are', 'du' => 34, 'bopq'=> "Ana are mere mereu", 13 => "OK" ); $array_2 = array('du', 13); $result = array_intersect_key($array_1, array_flip($array_2)); Var_dump($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.130.0060.00316.48
8.3.120.0090.00020.70
8.3.110.0060.00318.40
8.3.100.0040.00416.29
8.3.90.0080.00026.77
8.3.80.0030.00716.63
8.3.70.0090.00616.58
8.3.60.0120.00318.56
8.3.50.0090.00921.93
8.3.40.0060.00918.59
8.3.30.0100.00618.46
8.3.20.0040.00421.69
8.3.10.0070.00020.18
8.3.00.0040.00423.83
8.2.250.0040.01118.33
8.2.240.0060.00317.25
8.2.230.0000.00720.94
8.2.220.0040.00424.06
8.2.210.0040.01126.77
8.2.200.0030.00616.25
8.2.190.0060.00916.63
8.2.180.0090.00618.05
8.2.170.0070.00722.96
8.2.160.0120.00319.24
8.2.150.0100.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00622.02
8.2.100.0040.00817.59
8.2.90.0040.00417.63
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0050.00317.63
8.2.50.0000.00817.55
8.2.40.0060.00319.27
8.2.30.0040.00417.90
8.2.20.0000.00717.84
8.2.10.0040.00419.23
8.2.00.0000.00819.17
8.1.300.0030.00618.48
8.1.290.0040.00418.88
8.1.280.0090.00625.92
8.1.270.0090.00022.08
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0040.00821.88
8.1.230.0030.00922.75
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0040.00417.23
8.1.190.0000.00917.22
8.1.180.0110.00018.10
8.1.170.0000.00719.02
8.1.160.0040.00418.81
8.1.150.0040.00418.81
8.1.140.0070.00022.16
8.1.130.0040.00419.97
8.1.120.0020.00517.42
8.1.110.0030.00517.27
8.1.100.0000.00817.40
8.1.90.0000.00717.39
8.1.80.0070.00317.30
8.1.70.0000.00717.35
8.1.60.0000.00717.48
8.1.50.0080.00017.43
8.1.40.0040.00417.45
8.1.30.0000.01317.55
8.1.20.0030.00617.42
8.1.10.0050.00517.43
8.1.00.0040.00817.25
8.0.300.0040.00819.31
8.0.290.0000.00716.63
8.0.280.0030.00318.36
8.0.270.0040.00417.19
8.0.260.0080.00219.90
8.0.250.0050.00316.85
8.0.240.0000.00816.77
8.0.230.0060.00016.79
8.0.220.0070.00016.83
8.0.210.0000.00716.85
8.0.200.0080.00016.74
8.0.190.0000.00816.91
8.0.180.0030.00516.82
8.0.170.0030.00616.70
8.0.160.0060.00316.81
8.0.150.0000.01016.64
8.0.140.0050.00316.68
8.0.130.0030.00313.21
8.0.120.0040.00416.68
8.0.110.0000.00716.79
8.0.100.0040.00416.66
8.0.90.0060.00316.82
8.0.80.0090.00516.79
8.0.70.0040.00416.74
8.0.60.0000.00716.82
8.0.50.0000.00716.68
8.0.30.0130.00716.93
8.0.20.0120.00816.97
8.0.10.0030.00516.76
8.0.00.0100.01016.55
7.4.330.0050.00015.55
7.4.320.0030.00316.30
7.4.300.0060.00016.52
7.4.290.0030.00316.54
7.4.280.0000.00716.31
7.4.270.0000.00716.57
7.4.260.0070.00016.41
7.4.250.0070.00016.38
7.4.240.0050.00216.45
7.4.230.0050.00316.60
7.4.220.0050.00216.58
7.4.210.0070.00716.50
7.4.200.0000.00716.50
7.4.140.0060.01917.86
7.4.130.0070.01016.38
7.4.120.0110.01016.42
7.4.110.0080.00816.47
7.4.100.0120.00616.32
7.4.90.0160.00616.14
7.4.80.0110.00619.39
7.4.70.0040.01516.46
7.4.60.0070.01016.36
7.4.50.0030.00816.15
7.4.40.0040.01216.25
7.4.00.0060.01114.73
7.3.330.0000.00513.11
7.3.320.0030.00312.89
7.3.310.0030.00316.05
7.3.300.0030.00316.19
7.3.290.0150.00016.09
7.3.280.0000.01616.07
7.3.260.0130.00616.29
7.3.230.0030.01316.34
7.3.210.0090.00916.23
7.3.200.0090.01116.14
7.3.190.0110.00716.34
7.3.180.0080.00816.16
7.3.170.0060.01216.12
7.3.160.0060.00916.25
7.3.120.0070.00714.94
7.3.110.0090.00914.75
7.3.100.0060.00614.74
7.3.90.0030.00514.45
7.3.80.0000.01214.63
7.3.70.0050.00714.66
7.3.60.0030.00914.69
7.3.50.0050.00614.62
7.3.40.0050.00814.63
7.3.30.0070.00814.49
7.3.20.0030.00916.57
7.3.10.0110.00016.50
7.3.00.0060.00416.60
7.2.330.0100.00716.40
7.2.320.0100.00716.63
7.2.310.0100.00716.30
7.2.300.0110.00616.45
7.2.290.0080.00816.26
7.2.250.0030.01314.76
7.2.240.0060.01214.76
7.2.230.0080.00815.04
7.2.220.0040.00714.89
7.2.210.0070.00714.80
7.2.200.0040.01014.90
7.2.190.0030.01014.75
7.2.180.0070.01014.95
7.2.170.0030.00914.82
7.2.160.0070.00714.75
7.2.150.0060.00616.81
7.2.140.0040.00816.49
7.2.130.0060.00916.52
7.2.120.0160.00016.75
7.2.110.0090.00617.01
7.2.100.0040.00716.80
7.2.90.0080.00416.91
7.2.80.0100.00316.97
7.2.70.0030.00716.80
7.2.60.0090.00616.77
7.2.50.0030.01316.66
7.2.40.0080.00416.75
7.2.30.0060.00616.88
7.2.20.0070.01016.66
7.2.10.0080.00416.82
7.2.00.0080.00816.91
7.1.330.0070.00715.41
7.1.320.0030.00915.58
7.1.310.0000.01515.59
7.1.300.0070.00615.82
7.1.290.0070.00415.58
7.1.280.0030.01015.67
7.1.270.0100.00415.67
7.1.260.0080.00515.61
7.1.250.0090.00615.51

preferences:
29.72 ms | 403 KiB | 5 Q