3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = Array ( "a" => "0,1", "b" => "0,0", "c" => "0,2", "d" => "0,3", "e" => "10,2" ); $b = Array ( 1 => "0,3", 2 => "10,2" ); $intersect = array_intersect($a, $b); Var_dump($intersect); Echo "matching keys is: " . Implode(", ", array_keys($intersect));

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.130.0060.00218.97
8.4.120.0100.01124.06
8.4.110.0130.00718.70
8.4.100.0120.00718.80
8.4.90.0110.00920.91
8.4.80.0090.01019.30
8.4.70.0070.01018.12
8.4.60.0090.01319.00
8.4.50.0080.00821.91
8.4.40.0140.00717.41
8.4.30.0130.00719.32
8.4.20.0070.01320.50
8.4.10.0170.00317.53
8.3.260.0110.00816.45
8.3.250.0040.00518.68
8.3.240.0040.00417.25
8.3.230.0140.00716.53
8.3.220.0030.00518.94
8.3.210.0150.00318.36
8.3.200.0080.00716.71
8.3.190.0090.00916.95
8.3.180.0080.01118.22
8.3.170.0060.01217.22
8.3.160.0140.00318.85
8.3.150.0120.00316.58
8.3.140.0060.00917.35
8.3.130.0000.00818.25
8.3.120.0060.00318.87
8.3.110.0060.00320.94
8.3.100.0080.00416.37
8.3.90.0030.01326.77
8.3.80.0110.00018.30
8.3.70.0090.00618.43
8.3.60.0140.00416.38
8.3.50.0110.00517.24
8.3.40.0120.00318.63
8.3.30.0070.00718.45
8.3.20.0080.00018.65
8.3.10.0040.00419.21
8.3.00.0040.00423.34
8.2.290.0050.00320.54
8.2.280.0120.00518.48
8.2.270.0140.00717.05
8.2.260.0110.00716.40
8.2.250.0030.00616.62
8.2.240.0180.00017.04
8.2.230.0140.00422.58
8.2.220.0030.00624.06
8.2.210.0000.00826.77
8.2.200.0060.00316.38
8.2.190.0140.00716.58
8.2.180.0130.00916.75
8.2.170.0070.00722.96
8.2.160.0100.00320.44
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00419.70
8.2.120.0040.00426.35
8.2.110.0100.00021.04
8.2.100.0120.00017.78
8.2.90.0030.00617.78
8.2.80.0000.00819.27
8.2.70.0050.00518.04
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0040.00419.52
8.2.30.0040.00419.34
8.2.20.0000.00818.12
8.2.10.0000.00718.02
8.2.00.0040.00419.52
8.1.330.0040.00422.04
8.1.320.0080.01115.71
8.1.310.0000.00718.29
8.1.300.0070.00319.40
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0080.00022.03
8.1.260.0080.00326.35
8.1.250.0070.00028.09
8.1.240.0070.01022.47
8.1.230.0040.00821.10
8.1.220.0060.00317.76
8.1.210.0050.00318.92
8.1.200.0110.00017.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00818.40
8.1.160.0000.00718.83
8.1.150.0000.00718.74
8.1.140.0040.00417.51
8.1.130.0030.00319.02
8.1.120.0070.00017.29
8.1.110.0030.00917.34
8.1.100.0040.00417.38
8.1.90.0040.00417.40
8.1.80.0070.00017.43
8.1.70.0070.00017.28
8.1.60.0060.00317.45
8.1.50.0030.00517.32
8.1.40.0080.00017.47
8.1.30.0030.00617.52
8.1.20.0000.00717.50
8.1.10.0050.00317.54
8.1.00.0050.00317.47
8.0.300.0080.00019.87
8.0.290.0000.00716.75
8.0.280.0070.00018.44
8.0.270.0070.00017.32
8.0.260.0080.00317.25
8.0.250.0080.00016.87
8.0.240.0000.00716.84
8.0.230.0000.00716.96
8.0.220.0000.00716.90
8.0.210.0070.00016.89
8.0.200.0030.00316.89
8.0.190.0080.00016.97
8.0.180.0000.00716.88
8.0.170.0040.00416.91
8.0.160.0020.00516.85
8.0.150.0050.00316.73
8.0.140.0000.01116.71
8.0.130.0000.00813.22
8.0.120.0000.00816.85
8.0.110.0040.00416.73
8.0.100.0040.00416.94
8.0.90.0000.00716.79
8.0.80.0050.01216.86
8.0.70.0030.00516.87
8.0.60.0050.00216.92
8.0.50.0070.00016.78
8.0.30.0100.01117.11
8.0.20.0120.00617.40
8.0.10.0000.00717.00
8.0.00.0090.00916.98
7.4.330.0050.00015.55
7.4.320.0060.00016.59
7.4.300.0000.00616.45
7.4.290.0030.00316.53
7.4.280.0000.00716.54
7.4.270.0030.00716.49
7.4.260.0000.00716.43
7.4.250.0040.00416.45
7.4.240.0040.00416.59
7.4.230.0030.00316.65
7.4.220.0090.00016.45
7.4.210.0110.00816.56
7.4.200.0070.00016.35
7.4.160.0090.00716.45
7.4.140.0070.01117.86
7.4.130.0100.00716.46
7.4.120.0080.01016.47
7.4.110.0070.01016.44
7.4.100.0140.00316.58
7.4.90.0100.01116.60
7.4.80.0040.01419.39
7.4.70.0060.01016.36
7.4.60.0130.00316.64
7.4.50.0120.00016.52
7.4.40.0060.01116.48
7.4.00.0100.00315.07
7.3.330.0050.00012.96
7.3.320.0000.00613.12
7.3.310.0000.00716.20
7.3.300.0000.00616.06
7.3.290.0000.00716.24
7.3.280.0120.00616.24
7.3.260.0120.00616.33
7.3.240.0090.01016.33
7.3.230.0150.00316.38
7.3.210.0030.01516.38
7.3.200.0090.00816.17
7.3.190.0120.00916.04
7.3.180.0030.01316.55
7.3.170.0080.01216.12
7.3.160.0130.00616.27
7.3.10.0120.00516.28
7.3.00.0160.00316.30
7.2.330.0090.00916.71
7.2.320.0060.01116.79
7.2.310.0030.01616.61
7.2.300.0100.01016.61
7.2.290.0120.00616.68
7.2.130.0110.00916.38
7.2.120.0080.00716.45
7.2.110.0100.00616.36
7.2.100.0100.00416.52
7.2.90.0130.00316.51
7.2.80.0050.01216.62
7.2.70.0110.00816.80
7.2.60.2120.00916.06
7.2.50.2120.00716.07
7.2.40.1910.00816.16
7.2.30.1480.00316.44
7.2.20.1760.00816.18
7.2.10.1760.00916.36
7.2.00.1520.00716.38
7.1.250.0130.00515.45
7.1.200.0090.00615.96
7.1.170.5020.00513.82
7.1.160.6100.01016.46
7.1.150.4750.01216.65
7.1.140.5450.01116.57
7.1.130.4560.01116.76
7.1.120.5530.00816.77
7.1.110.6640.00916.15
7.1.100.6000.01116.15
7.1.90.6790.00915.98
7.1.80.6540.00816.23
7.1.70.5770.00815.24
7.1.60.0300.01233.07
7.1.50.5710.01632.77
7.1.40.1260.01732.48
7.1.30.2070.01332.39
7.1.20.3610.01632.64
7.1.10.2610.01114.74
7.1.00.0080.01014.71

preferences:
31.13 ms | 403 KiB | 5 Q