3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $incomingArray = [ 'foo' => 'abc', 'bar' => null, 'candy' => null, ]; $myKeyCheck = ['foo', 'bar', 'candy']; $iterator = function($a, $b) { return empty($a); }; \var_dump(\array_filter(\array_uintersect($incomingArray, \array_flip($myKeyCheck), $iterator)));

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.0110.00718.30
8.3.50.0030.01516.27
8.3.40.0120.00318.56
8.3.30.0040.01118.71
8.3.20.0040.00420.26
8.3.10.0050.00320.99
8.3.00.0080.00020.85
8.2.180.0120.00916.88
8.2.170.0040.01122.96
8.2.160.0000.01419.09
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0070.00026.16
8.2.120.0040.00419.66
8.2.110.0060.00321.04
8.2.100.0120.00017.84
8.2.90.0040.00417.75
8.2.80.0050.00318.83
8.2.70.0080.00017.50
8.2.60.0050.00317.92
8.2.50.0050.00318.07
8.2.40.0040.00419.88
8.2.30.0040.00418.10
8.2.20.0040.00418.08
8.2.10.0000.00818.09
8.2.00.0040.00418.20
8.1.280.0090.00925.92
8.1.270.0040.00423.92
8.1.260.0080.00026.35
8.1.250.0000.00928.09
8.1.240.0000.00920.84
8.1.230.0080.00417.83
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0050.00417.35
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0030.00618.94
8.1.150.0080.00018.96
8.1.140.0030.00619.60
8.1.130.0030.00317.47
8.1.120.0030.00417.44
8.1.110.0030.00517.46
8.1.100.0040.00417.47
8.1.90.0000.00717.29
8.1.80.0040.00417.52
8.1.70.0070.00017.33
8.1.60.0060.00317.48
8.1.50.0070.00017.38
8.1.40.0080.00017.47
8.1.30.0040.00417.73
8.1.20.0030.00617.62
8.1.10.0000.00817.44
8.1.00.0000.00717.33
8.0.300.0070.00018.77
8.0.290.0050.00316.75
8.0.280.0070.00018.48
8.0.270.0040.00417.12
8.0.260.0070.00016.82
8.0.250.0030.00316.95
8.0.240.0040.00416.86
8.0.230.0050.00316.98
8.0.220.0030.00316.89
8.0.210.0030.00616.74
8.0.200.0000.00717.01
8.0.190.0000.00817.03
8.0.180.0000.00817.06
8.0.170.0070.00016.88
8.0.160.0040.00416.86
8.0.150.0040.00416.95
8.0.140.0000.00816.80
8.0.130.0000.00613.35
8.0.120.0000.00716.86
8.0.110.0030.00516.99
8.0.100.0040.00416.84
8.0.90.0040.00416.74
8.0.80.0070.00716.95
8.0.70.0000.00716.95
8.0.60.0040.00416.97
8.0.50.0030.00517.02
8.0.30.0100.00917.13
8.0.20.0120.00817.40
8.0.10.0000.00716.87
8.0.00.0130.00416.71
7.4.330.0030.00315.55
7.4.320.0050.00316.62
7.4.300.0000.00616.61
7.4.290.0000.00716.61
7.4.280.0000.00816.41
7.4.270.0040.00416.51
7.4.260.0030.00316.52
7.4.250.0000.00816.34
7.4.240.0070.00016.41
7.4.230.0030.00416.51
7.4.220.0070.01116.68
7.4.210.0040.01116.63
7.4.200.0030.00316.71
7.4.160.0160.00416.47
7.4.150.0120.00617.40
7.4.140.0120.00817.86
7.4.130.0090.01216.44
7.4.120.0110.00916.45
7.4.110.0140.00316.39
7.4.100.0130.00316.54
7.4.90.0120.00416.52
7.4.80.0030.01819.39
7.4.70.0150.00316.63
7.4.60.0060.00916.41
7.4.50.0030.01416.39
7.4.40.0060.01116.47
7.4.30.0140.00716.56
7.4.10.0070.00715.02
7.4.00.0080.00814.78
7.3.330.0040.00213.25
7.3.320.0000.00713.20
7.3.310.0070.00016.14
7.3.300.0000.00816.23
7.3.290.0090.00516.23
7.3.280.0080.00716.21
7.3.270.0120.00617.40
7.3.260.0090.00916.47
7.3.250.0080.01416.31
7.3.240.0100.00716.22
7.3.230.0100.00716.18
7.3.210.0110.00616.20
7.3.200.0040.01216.61
7.3.190.0090.00616.21
7.3.180.0130.00316.25
7.3.170.0060.00916.22
7.3.160.0100.00616.23
7.3.130.0070.01114.43
7.3.120.0070.01114.96
7.3.110.0040.01514.50
7.3.100.0100.00714.67
7.3.90.0060.00915.02
7.3.80.0000.01314.63
7.3.70.0060.00914.56
7.3.60.0090.00614.64
7.3.50.0060.00614.77
7.3.40.0040.00814.64
7.3.30.0060.00614.60
7.3.20.0110.00416.54
7.3.10.0030.00616.54
7.3.00.0030.01216.61
7.2.330.0060.01616.61
7.2.320.0070.01016.61
7.2.310.0140.00316.45
7.2.300.0100.01316.43
7.2.290.0040.01516.60
7.2.260.0120.00614.68
7.2.250.0070.01115.16
7.2.240.0040.01115.00
7.2.230.0130.00614.83
7.2.220.0090.00614.54
7.2.210.0040.01114.83
7.2.200.0000.01714.74
7.2.190.0090.00614.74
7.2.180.0090.00014.91
7.2.170.0060.00615.03
7.2.160.0030.01015.03
7.2.150.0090.00616.55
7.2.140.0060.00316.82
7.2.130.0060.01016.59
7.2.120.0070.01016.42
7.2.110.0000.01116.77
7.2.100.0110.00416.79
7.2.90.0040.01116.95
7.2.80.0000.01816.88
7.2.70.0100.00616.78
7.2.60.0050.00816.64
7.2.50.0090.00616.64
7.2.40.0090.00616.93
7.2.30.0100.01016.84
7.2.20.0040.01116.97
7.2.10.0000.01416.65
7.2.00.0080.00316.79
7.1.330.0090.00615.83
7.1.320.0060.01215.56
7.1.310.0060.00615.59
7.1.300.0030.01015.53
7.1.290.0040.00415.49
7.1.280.0030.00615.61
7.1.270.0000.01415.69
7.1.260.0060.00315.79
7.1.250.0070.01015.75
7.1.240.0090.00615.65
7.1.230.0030.00615.61
7.1.220.0070.00715.74
7.1.210.0120.00015.57
7.1.200.0100.01115.39
7.1.190.0030.00815.50
7.1.180.0070.01015.56
7.1.170.0110.00315.84
7.1.160.0040.00815.79
7.1.150.0070.01015.51
7.1.140.0070.00715.73
7.1.130.0090.00615.64
7.1.120.0090.00615.89
7.1.110.0040.01215.86
7.1.100.0000.00815.53
7.1.90.0000.01215.45
7.1.80.0040.01216.86
7.1.70.0080.00816.38
7.1.60.0140.01225.45
7.1.50.0880.00825.26
7.1.40.1090.01424.12
7.1.30.1070.01324.23
7.1.20.0150.01125.05
7.1.10.0040.01016.20
7.1.00.0030.01116.23
7.0.330.0030.01215.44
7.0.320.0040.01115.20
7.0.310.0030.00715.29
7.0.300.0070.00715.44
7.0.290.0090.00615.10
7.0.280.0060.00615.15
7.0.270.0070.00315.51
7.0.260.0040.00715.41
7.0.250.0040.01115.29
7.0.240.0030.00715.51
7.0.230.0080.00315.49
7.0.220.0070.00715.34
7.0.210.0090.00615.38
7.0.200.0080.00816.06
7.0.190.0090.00515.90
7.0.180.0960.00814.89
7.0.170.1010.01215.75
7.0.160.0030.01015.81
7.0.150.0080.00715.72
7.0.140.0060.01115.69
7.0.130.1020.01314.88
7.0.120.1020.01114.77
7.0.110.0050.01214.81
7.0.100.0050.00915.63
7.0.90.0060.00915.79
7.0.80.0050.00815.71
7.0.70.0080.00815.70
7.0.60.0060.01215.70
7.0.50.0040.01115.87
7.0.40.0960.01013.96
7.0.30.1130.01314.90
7.0.20.0110.00514.84
7.0.10.1140.00514.04
7.0.00.0030.01014.85
5.6.400.0060.00314.12
5.6.390.0060.00614.47
5.6.380.0100.00314.30
5.6.370.0000.01014.42
5.6.360.0030.00913.98
5.6.350.0030.01214.51
5.6.340.0070.00714.28
5.6.330.0070.01014.27
5.6.320.0040.00813.89
5.6.310.0060.00914.27
5.6.300.0060.00914.37
5.6.290.0060.00314.59
5.6.280.0040.00413.96
5.6.270.0140.00314.35
5.6.260.0040.00414.37
5.6.250.0030.01014.24
5.6.240.0060.00614.22
5.6.230.0000.01214.03
5.6.220.0070.00714.36
5.6.210.0000.01514.19
5.6.200.0070.00714.22
5.6.190.0070.00714.31
5.6.180.0060.00614.20
5.6.170.0110.00713.97
5.6.160.0100.00314.27
5.6.150.0060.00914.24
5.6.140.0000.00914.08
5.6.130.0080.00414.34
5.6.120.0030.01314.32
5.6.110.0000.01314.06
5.6.100.0060.00914.06
5.6.90.0000.00814.24
5.6.80.0000.01514.27
5.6.70.0120.00414.04
5.6.60.0040.01014.25
5.6.50.0090.00614.12
5.6.40.0070.00314.16
5.6.30.0000.01014.19
5.6.20.0060.00314.09
5.6.10.0000.01013.92
5.6.00.0040.00714.04

preferences:
59.86 ms | 404 KiB | 6 Q