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 is_string($a); }; \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.60.0150.00318.30
8.3.50.0140.00716.48
8.3.40.0110.00718.59
8.3.30.0040.01118.46
8.3.20.0040.01119.97
8.3.10.0040.00420.91
8.3.00.0040.00418.81
8.2.180.0040.01118.41
8.2.170.0070.00722.96
8.2.160.0040.01119.05
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00019.21
8.2.120.0050.00326.35
8.2.110.0030.00620.93
8.2.100.0040.00817.81
8.2.90.0030.00518.16
8.2.80.0030.00618.03
8.2.70.0040.00417.25
8.2.60.0060.00317.63
8.2.50.0040.00417.55
8.2.40.0030.00622.18
8.2.30.0000.00719.17
8.2.20.0050.00217.93
8.2.10.0000.00718.16
8.2.00.0070.00018.11
8.1.280.0060.01225.92
8.1.270.0000.01423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.96
8.1.230.0040.00820.97
8.1.220.0030.00517.74
8.1.210.0050.00518.77
8.1.200.0000.00817.35
8.1.190.0060.00319.01
8.1.180.0030.00518.10
8.1.170.0090.00018.64
8.1.160.0000.00719.03
8.1.150.0050.00218.81
8.1.140.0000.00719.47
8.1.130.0030.00318.91
8.1.120.0060.00417.48
8.1.110.0080.00017.44
8.1.100.0000.00717.36
8.1.90.0000.00817.43
8.1.80.0040.00417.36
8.1.70.0070.00017.36
8.1.60.0030.00617.59
8.1.50.0040.00417.43
8.1.40.0030.00517.37
8.1.30.0000.00717.54
8.1.20.0030.00617.52
8.1.10.0000.00817.40
8.1.00.0000.00717.38
8.0.300.0080.00019.75
8.0.290.0040.00416.63
8.0.280.0040.00418.30
8.0.270.0000.00716.82
8.0.260.0070.00018.84
8.0.250.0030.00316.78
8.0.240.0040.00416.79
8.0.230.0080.00016.87
8.0.220.0040.00416.76
8.0.210.0080.00016.73
8.0.200.0030.00316.85
8.0.190.0040.00416.93
8.0.180.0000.00816.94
8.0.170.0000.00716.90
8.0.160.0040.00416.90
8.0.150.0040.00416.88
8.0.140.0060.00316.87
8.0.130.0050.00013.34
8.0.120.0070.00016.75
8.0.110.0070.00016.86
8.0.100.0050.00316.86
8.0.90.0040.00416.94
8.0.80.0120.00316.96
8.0.70.0040.00416.90
8.0.60.0000.00716.96
8.0.50.0040.00416.84
8.0.30.0110.00717.10
8.0.20.0100.00917.40
8.0.10.0000.00716.97
8.0.00.0030.01316.63
7.4.330.0060.00015.55
7.4.320.0000.00716.55
7.4.300.0040.00416.53
7.4.290.0070.00016.63
7.4.280.0000.00816.58
7.4.270.0000.00716.42
7.4.260.0070.00016.61
7.4.250.0020.00516.48
7.4.240.0030.00316.61
7.4.230.0020.00516.56
7.4.220.0060.01216.45
7.4.210.0070.01216.56
7.4.200.0000.00816.60
7.4.160.0070.00916.50
7.4.150.0150.00317.40
7.4.140.0090.00917.86
7.4.130.0140.00416.63
7.4.120.0110.01016.42
7.4.110.0100.00716.55
7.4.100.0090.00916.45
7.4.90.0000.01816.40
7.4.80.0090.00819.39
7.4.70.0090.00916.44
7.4.60.0100.00616.58
7.4.50.0110.00316.30
7.4.40.0090.01516.60
7.4.30.0060.00916.42
7.4.00.0030.01014.88
7.3.330.0030.00313.27
7.3.320.0060.00013.31
7.3.310.0070.00016.22
7.3.300.0040.00416.22
7.3.290.0000.01516.25
7.3.280.0090.00816.22
7.3.270.0110.00617.40
7.3.260.0080.01216.22
7.3.250.0110.00916.35
7.3.240.0120.00816.34
7.3.230.0060.01216.46
7.3.210.0100.00716.45
7.3.200.0140.00316.25
7.3.190.0080.00816.14
7.3.180.0110.01116.20
7.3.170.0090.01216.30
7.3.160.0130.00316.36
7.3.10.0030.01016.58
7.3.00.0050.00816.71
7.2.330.0100.01416.30
7.2.320.0040.01516.62
7.2.310.0050.01616.43
7.2.300.0120.00616.62
7.2.290.0080.00816.44
7.2.130.0010.01216.86
7.2.120.0050.01116.85
7.2.110.0030.01016.89
7.2.100.0070.00716.77
7.2.90.0070.00716.74
7.2.80.0000.00916.70
7.2.70.0060.00816.80
7.2.60.0060.00716.72
7.2.50.0050.00816.79
7.2.40.0050.00616.82
7.2.30.0020.01316.78
7.2.20.0080.00216.73
7.2.10.0120.00316.88
7.2.00.0030.01016.88
7.1.250.0020.01415.70
7.1.200.0000.00915.81
7.1.80.0140.01016.16
7.1.70.0120.01115.38
7.1.60.6740.02133.08
7.1.50.6050.01932.91
7.1.40.5450.01232.45
7.1.30.7360.01632.65
7.1.20.4660.01932.71
7.1.10.4570.01114.75
7.1.00.4410.00914.81
7.0.200.6550.01814.88
7.0.190.6020.00914.70
7.0.180.5330.01214.38
7.0.170.6300.01214.33
7.0.160.6120.01314.18
7.0.150.5660.00614.42
7.0.140.5340.01014.43
7.0.130.5010.00814.57
7.0.120.4680.00614.54
7.0.110.4530.01814.68
7.0.100.4370.01214.61
7.0.90.4030.01314.43
7.0.80.3980.00514.53
7.0.70.3980.00814.46
7.0.60.4310.00614.04
7.0.50.4210.01314.50
7.0.40.4160.00914.88
7.0.30.3540.00814.60
7.0.20.3790.01314.59
7.0.10.4090.01014.81
7.0.00.0110.00814.58

preferences:
102.84 ms | 400 KiB | 5 Q