3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $incomingArray = [ 'foo' => 'abc', 'bar' => null, 'candy' => 1, 'foobar' => true, 'df' => 'this should not be in results', ]; $myKeyCheck = ['foo', 'bar', 'candy', 'foobar', 'barfoo', 'fd']; $filter = function($a) { return $a !== null; }; \var_dump(\array_filter(\array_intersect_key($incomingArray, \array_flip($myKeyCheck)), $filter));

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.70.0150.00016.36
8.3.60.0180.00018.29
8.3.50.0140.00516.56
8.3.40.0040.01118.53
8.3.30.0120.00318.58
8.3.20.0000.00820.16
8.3.10.0030.00620.76
8.3.00.0000.00820.94
8.2.190.0120.00916.75
8.2.180.0140.00016.38
8.2.170.0110.00422.96
8.2.160.0070.00719.13
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0060.01220.96
8.2.110.0090.00021.13
8.2.100.0070.00317.72
8.2.90.0070.00319.34
8.2.80.0040.00419.28
8.2.70.0050.00317.50
8.2.60.0000.00818.16
8.2.50.0050.00318.10
8.2.40.0040.00420.42
8.2.30.0040.00419.13
8.2.20.0050.00318.17
8.2.10.0040.00418.10
8.2.00.0040.00418.11
8.1.280.0140.00425.92
8.1.270.0050.00222.05
8.1.260.0090.00026.35
8.1.250.0060.00328.09
8.1.240.0090.00320.68
8.1.230.0090.00320.97
8.1.220.0050.00317.77
8.1.210.0050.00518.91
8.1.200.0000.00917.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0080.00018.60
8.1.160.0030.00518.86
8.1.150.0040.00418.95
8.1.140.0040.00419.50
8.1.130.0030.00318.89
8.1.120.0040.00717.53
8.1.110.0050.00317.48
8.1.100.0000.00817.42
8.1.90.0070.00017.47
8.1.80.0030.00617.43
8.1.70.0030.00317.51
8.1.60.0070.00417.51
8.1.50.0020.00517.43
8.1.40.0040.00417.44
8.1.30.0060.00317.62
8.1.20.0000.00917.49
8.1.10.0030.00517.45
8.1.00.0000.00717.43
8.0.300.0030.00319.86
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0070.00017.14
8.0.260.0060.00018.81
8.0.250.0030.00316.98
8.0.240.0080.00016.77
8.0.230.0040.00416.83
8.0.220.0000.00716.89
8.0.210.0000.00716.82
8.0.200.0000.00616.87
8.0.190.0000.00816.98
8.0.180.0000.00716.85
8.0.170.0070.00016.92
8.0.160.0040.00416.94
8.0.150.0040.00416.80
8.0.140.0060.00316.74
8.0.130.0000.00613.28
8.0.120.0040.00416.91
8.0.110.0030.00316.83
8.0.100.0040.00416.84
8.0.90.0000.00716.93
8.0.80.0120.00316.90
8.0.70.0000.00716.96
8.0.60.0000.00716.73
8.0.50.0050.00216.84
8.0.30.0080.01216.97
8.0.20.0130.01217.40
8.0.10.0050.00216.88
8.0.00.0090.00916.81
7.4.330.0020.00215.55
7.4.320.0060.00016.50
7.4.300.0030.00316.56
7.4.290.0040.00416.39
7.4.280.0040.00416.52
7.4.270.0050.00316.50
7.4.260.0070.00016.52
7.4.250.0040.00416.58
7.4.240.0070.00016.65
7.4.230.0030.00316.63
7.4.220.0070.01416.63
7.4.210.0000.01516.47
7.4.200.0040.00416.39
7.4.160.0050.01116.46
7.4.150.0180.00017.40
7.4.140.0120.00817.86
7.4.130.0140.00616.52
7.4.120.0090.01116.50
7.4.110.0100.00616.55
7.4.100.0140.00316.40
7.4.90.0090.00916.40
7.4.80.0070.01019.39
7.4.70.0100.01016.38
7.4.60.0120.00316.40
7.4.50.0030.01316.39
7.4.40.0180.00616.29
7.4.30.0080.00816.53
7.4.00.0000.01714.90
7.3.330.0000.00513.23
7.3.320.0000.00613.13
7.3.310.0030.00316.29
7.3.300.0030.00316.14
7.3.290.0090.00916.32
7.3.280.0090.01016.30
7.3.270.0150.00317.40
7.3.260.0140.00416.58
7.3.250.0120.00916.34
7.3.240.0110.01316.37
7.3.230.0070.01016.35
7.3.210.0080.00816.66
7.3.200.0080.00816.48
7.3.190.0030.01416.44
7.3.180.0060.01216.45
7.3.170.0140.00316.45
7.3.160.0100.00616.47
7.2.330.0090.01616.71
7.2.320.0030.01416.61
7.2.310.0070.01416.26
7.2.300.0090.00816.63
7.2.290.0030.01316.67
7.2.60.0090.00316.94
7.1.200.0000.01115.70
7.1.80.4760.01315.72
7.1.70.5380.01115.24
7.1.60.4270.01233.33
7.1.50.5660.00933.00
7.1.40.5020.01732.69
7.1.30.5750.01332.83
7.1.20.4480.01832.73
7.1.10.4360.01614.80
7.1.00.4870.01414.72
7.0.200.4190.01414.80
7.0.190.6170.01214.86
7.0.180.5580.00814.38
7.0.170.5670.00714.40
7.0.160.5640.01314.47
7.0.150.4810.01614.23
7.0.140.4780.01014.58
7.0.130.4960.00614.50
7.0.120.5040.01514.73
7.0.110.4840.01714.33
7.0.100.4090.01314.27
7.0.90.4340.00614.38
7.0.80.4380.01614.39
7.0.70.4570.01314.59
7.0.60.4940.01214.34
7.0.50.4860.01714.45
7.0.40.4600.01314.36
7.0.30.4340.00714.36
7.0.20.3890.00914.56
7.0.10.4460.01214.29
7.0.00.4390.01314.48

preferences:
24.38 ms | 401 KiB | 5 Q