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', 'aa' => '', ]; $myKeyCheck = ['foo', 'bar', 'candy', 'foobar', 'barfoo', 'fd', 'aa']; $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.0070.01118.36
8.3.50.0180.00416.52
8.3.40.0070.00718.49
8.3.30.0110.00418.59
8.3.20.0030.00520.24
8.3.10.0090.00020.72
8.3.00.0000.00818.86
8.2.180.0120.00916.50
8.2.170.0140.00022.96
8.2.160.0090.00618.80
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00819.31
8.2.120.0040.00426.35
8.2.110.0030.00622.08
8.2.100.0120.00317.91
8.2.90.0000.00819.34
8.2.80.0080.00019.36
8.2.70.0040.00417.63
8.2.60.0040.00417.90
8.2.50.0080.00018.07
8.2.40.0000.00918.16
8.2.30.0000.00717.95
8.2.20.0030.00517.88
8.2.10.0070.00018.11
8.2.00.0000.00718.07
8.1.280.0110.01125.92
8.1.270.0040.00422.19
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0170.00722.48
8.1.230.0090.00320.98
8.1.220.0000.00917.74
8.1.210.0110.00018.77
8.1.200.0060.00317.38
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.86
8.1.160.0030.00518.77
8.1.150.0050.00218.78
8.1.140.0000.00719.46
8.1.130.0000.00718.82
8.1.120.0060.00317.33
8.1.110.0050.00317.41
8.1.100.0040.00417.41
8.1.90.0040.00417.54
8.1.80.0000.00717.45
8.1.70.0030.00317.46
8.1.60.0030.00617.61
8.1.50.0020.00517.58
8.1.40.0000.00817.53
8.1.30.0080.00017.64
8.1.20.0030.00717.55
8.1.10.0090.00017.40
8.1.00.0070.00017.41
8.0.300.0050.00219.96
8.0.290.0040.00416.63
8.0.280.0040.00418.38
8.0.270.0080.00017.13
8.0.260.0040.00418.88
8.0.250.0000.00716.92
8.0.240.0080.00016.92
8.0.230.0020.00516.79
8.0.220.0020.00516.73
8.0.210.0000.00716.73
8.0.200.0070.00016.95
8.0.190.0080.00016.95
8.0.180.0050.00216.95
8.0.170.0000.00716.83
8.0.160.0000.00716.93
8.0.150.0050.00216.77
8.0.140.0000.00816.79
8.0.130.0030.00313.28
8.0.120.0040.00416.91
8.0.110.0050.00316.74
8.0.100.0000.00816.87
8.0.90.0040.00416.80
8.0.80.0070.01316.91
8.0.70.0000.00716.88
8.0.60.0040.00416.87
8.0.50.0070.00016.77
8.0.30.0080.00917.01
8.0.20.0120.01217.40
8.0.10.0000.00716.87
8.0.00.0070.01016.93
7.4.330.0060.00015.55
7.4.320.0030.00316.59
7.4.300.0000.00716.61
7.4.290.0040.00416.63
7.4.280.0000.00816.58
7.4.270.0000.00716.62
7.4.260.0050.00516.57
7.4.250.0040.00416.49
7.4.240.0030.00316.50
7.4.230.0050.00216.72
7.4.220.0120.00816.56
7.4.210.0070.01416.61
7.4.200.0030.00316.51
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0080.01116.37
7.4.120.0090.01116.42
7.4.110.0080.00816.59
7.4.100.0140.01116.41
7.4.90.0150.00416.50
7.4.80.0180.00019.39
7.4.70.0030.01316.37
7.4.60.0130.00316.69
7.4.50.0000.01816.35
7.4.40.0100.01316.62
7.4.30.0080.00816.59
7.4.00.0090.00814.69
7.3.330.0000.00513.24
7.3.320.0060.00013.10
7.3.310.0070.00016.27
7.3.300.0000.00716.11
7.3.290.0080.00816.28
7.3.280.0090.00816.23
7.3.270.0090.00817.40
7.3.260.0080.00816.35
7.3.250.0100.01016.33
7.3.240.0140.00516.37
7.3.230.0100.00716.57
7.3.210.0040.01616.31
7.3.200.0110.00816.15
7.3.190.0130.00316.38
7.3.180.0100.00716.27
7.3.170.0110.00816.23
7.3.160.0080.00816.31
7.3.120.0070.01214.65
7.3.110.0090.00914.95
7.3.100.0100.00514.71
7.3.90.0080.00314.62
7.3.80.0000.01214.69
7.3.70.0080.00614.72
7.3.60.0070.00714.61
7.3.50.0050.00714.87
7.3.40.0040.00914.67
7.3.30.0040.01114.52
7.3.20.0070.00616.57
7.3.10.0110.00416.51
7.3.00.0030.00916.37
7.2.330.0120.00916.34
7.2.320.0030.01316.43
7.2.310.0060.01216.65
7.2.300.0110.00816.55
7.2.290.0060.01016.40
7.2.250.0090.00914.77
7.2.240.0030.01614.83
7.2.230.0090.00515.08
7.2.220.0030.01014.93
7.2.210.0050.00915.09
7.2.200.0100.00315.11
7.2.190.0060.00814.92
7.2.180.0050.00914.83
7.2.170.0050.00614.99
7.2.60.0060.00916.84
7.1.330.0070.00715.73
7.1.320.0030.00915.74
7.1.310.0030.01215.76
7.1.300.0060.00815.71
7.1.290.0030.00815.64
7.1.280.0080.00315.71
7.1.270.0070.00715.45
7.1.260.0080.00415.70
7.1.200.0070.00415.82
7.1.80.5250.01015.89
7.1.70.4340.00515.04
7.1.60.3660.01433.08
7.1.50.4130.01333.10
7.1.40.4730.01032.56
7.1.30.6110.00932.64
7.1.20.4240.01632.79
7.1.10.4280.00714.70
7.1.00.3790.01114.74
7.0.200.4930.01314.64
7.0.190.5230.00314.87
7.0.180.4320.02214.30
7.0.170.6160.01114.28
7.0.160.6260.00914.55
7.0.150.3750.01614.59
7.0.140.3730.01014.49
7.0.130.3810.01314.53
7.0.120.3960.01714.59
7.0.110.3870.01614.34
7.0.100.3720.00714.50
7.0.90.3220.01014.40
7.0.80.3280.01214.62
7.0.70.3070.01414.59
7.0.60.3760.00914.42
7.0.50.3730.01514.42
7.0.40.4220.00914.65
7.0.30.3730.01014.59
7.0.20.3760.01314.36
7.0.10.4030.01214.52
7.0.00.3680.01314.81

preferences:
31.44 ms | 401 KiB | 5 Q