3v4l.org

run code in 300+ PHP versions simultaneously
<?php function filterKeys($array,$search){ $allowed=array_filter(array_keys($array),function($key){return stristr($key,$search);}); return array_intersect_key($array,array_flip($allowed)); } var_dump(filterKeys(array('foo'=>'bar', 'moo'=>'baz'),'foo')); ?>

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.40.0140.00718.71
8.3.30.0150.00018.96
8.3.20.0040.00420.34
8.3.10.0000.00821.92
8.3.00.0000.00822.48
8.2.170.0110.00322.96
8.2.160.0100.00319.28
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0150.00326.16
8.2.120.0090.00017.93
8.2.110.0030.00722.25
8.2.100.0120.00018.16
8.2.90.0040.00417.63
8.2.80.0080.00017.97
8.2.70.0040.00418.05
8.2.60.0000.00717.93
8.2.50.0040.00418.10
8.2.40.0000.00820.51
8.2.30.0050.00318.18
8.2.20.0040.00417.78
8.2.10.0000.00817.63
8.2.00.0060.00317.67
8.1.270.0120.00418.47
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00020.81
8.1.230.0120.00419.18
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0000.01017.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0060.00318.53
8.1.160.0070.00022.02
8.1.150.0070.00318.65
8.1.140.0000.00717.51
8.1.130.0000.00717.83
8.1.120.0000.00817.43
8.1.110.0040.00417.36
8.1.100.0000.00717.46
8.1.90.0000.00717.35
8.1.80.0000.00817.46
8.1.70.0040.00417.33
8.1.60.0000.00817.55
8.1.50.0080.00017.53
8.1.40.0000.00717.60
8.1.30.0000.00817.64
8.1.20.0080.00017.63
8.1.10.0040.00417.37
8.1.00.0040.00417.41
8.0.300.0040.00419.65
8.0.290.0020.00516.63
8.0.280.0000.00718.39
8.0.270.0030.00317.27
8.0.260.0000.00616.70
8.0.250.0000.00716.88
8.0.240.0080.00016.90
8.0.230.0000.00716.84
8.0.220.0040.00416.92
8.0.210.0000.00816.85
8.0.200.0070.00016.96
8.0.190.0000.00717.03
8.0.180.0040.00416.87
8.0.170.0030.00616.96
8.0.160.0080.00016.85
8.0.150.0000.00716.89
8.0.140.0040.00416.93
8.0.130.0060.00013.43
8.0.120.0050.00316.81
8.0.110.0080.00016.91
8.0.100.0000.00816.84
8.0.90.0070.00016.85
8.0.80.0120.00916.97
8.0.70.0050.00317.03
8.0.60.0040.00416.79
8.0.50.0000.00816.96
8.0.30.0090.00917.13
8.0.20.0130.00517.40
8.0.10.0040.00417.13
8.0.00.0050.01416.85
7.4.330.0030.00315.00
7.4.320.0060.00016.42
7.4.300.0000.00616.61
7.4.290.0030.00316.42
7.4.280.0030.00616.67
7.4.270.0080.00016.61
7.4.260.0040.00216.52
7.4.250.0030.00616.38
7.4.240.0020.00516.56
7.4.230.0070.00016.44
7.4.220.0150.00816.53
7.4.210.0120.00716.56
7.4.200.0070.00016.54
7.4.190.0070.00016.74
7.4.160.0030.01416.51
7.4.150.0210.00317.40
7.4.140.0120.00817.86
7.4.130.0100.00716.58
7.4.120.0120.00416.54
7.4.110.0130.00416.38
7.4.100.0120.00916.61
7.4.90.0100.01316.53
7.4.80.0150.00619.39
7.4.70.0030.01316.63
7.4.60.0150.00016.34
7.4.50.0000.00816.68
7.4.40.0070.01122.77
7.4.30.0110.00516.35
7.4.00.0070.01014.93
7.3.330.0000.00613.05
7.3.320.0000.00513.29
7.3.310.0000.00716.21
7.3.300.0030.00316.29
7.3.290.0080.00816.23
7.3.280.0050.01016.30
7.3.270.0170.00017.40
7.3.260.0140.00716.50
7.3.250.0130.01016.41
7.3.240.0170.00716.63
7.3.230.0090.00916.45
7.3.210.0070.01016.61
7.3.200.0100.00616.41
7.3.190.0030.01416.30
7.3.180.0110.00416.41
7.3.170.0050.01116.42
7.3.160.0060.01016.44
7.3.120.0070.00714.84
7.2.330.0060.01216.50
7.2.320.0160.00816.69
7.2.310.0130.00316.71
7.2.300.0070.01116.36
7.2.290.0100.00616.49
7.2.00.0110.00319.46
7.1.100.0100.01018.23
7.1.70.0000.00716.89
7.1.60.0130.01019.82
7.1.50.0100.01316.96
7.1.00.0070.07322.35
7.0.200.0020.00516.61
7.0.140.0000.08022.16
7.0.60.0070.04020.03
7.0.50.0000.08317.97
7.0.40.0070.05320.13
7.0.30.0570.03020.27
7.0.20.0270.06020.05
7.0.10.0030.06320.15
7.0.00.0070.04320.30
5.6.280.0000.07721.11
5.6.210.0130.08020.75
5.6.200.0130.08018.27
5.6.190.0130.05720.41
5.6.180.0470.03020.77
5.6.170.0230.04320.55
5.6.160.0070.04020.76
5.6.150.0100.06318.30
5.6.140.0000.04018.23
5.6.130.0000.06318.18
5.6.120.0170.07321.02
5.6.110.0200.07721.04
5.6.100.0100.06721.02
5.6.90.0000.08720.97
5.6.80.0130.07720.52
5.5.350.0130.04320.33
5.5.340.0070.03717.99
5.5.330.0100.04320.41
5.5.320.0370.04320.20
5.5.310.0300.07720.19
5.5.300.0030.05717.94
5.5.290.0070.04017.94
5.5.280.0100.08320.87
5.5.270.0000.04720.96
5.5.260.0070.05320.68
5.5.250.0070.04320.59
5.5.240.0100.07720.07
5.4.450.0930.06319.61
5.4.440.0100.07019.45
5.4.430.0100.05319.36
5.4.420.0030.06019.22
5.4.410.0130.05019.03
5.4.400.0230.05018.72
5.4.390.0070.05718.62
5.4.380.0200.04718.47
5.4.370.0300.05318.50
5.4.360.0270.04018.54
5.4.350.0070.03512.02
5.4.340.0060.04112.02
5.4.320.0060.03712.51
5.4.310.0070.04212.50
5.4.300.0080.03612.51
5.4.290.0050.04012.50
5.4.280.0040.03612.40
5.4.270.0060.03612.40
5.4.260.0050.03912.41
5.4.250.0100.04718.74
5.4.240.0100.05018.80
5.4.230.0170.07318.96
5.4.220.0100.05018.99
5.4.210.0100.06318.80
5.4.200.0130.04718.99
5.4.190.0030.05718.94
5.4.180.0170.04718.90
5.4.170.0100.05018.98
5.4.160.0130.04718.74
5.4.150.0030.05718.98
5.4.140.0070.04716.64
5.4.130.0070.04716.63
5.4.120.0130.05316.39
5.4.110.0070.05016.56
5.4.100.0030.05016.52
5.4.90.0000.05316.54
5.4.80.0030.05316.45
5.4.70.0070.04716.52
5.4.60.0170.04716.48
5.4.50.0030.05316.30
5.4.40.0170.04316.35
5.4.30.0070.06716.58
5.4.20.0070.06716.30
5.4.10.0000.05716.59
5.4.00.0130.06015.87
5.3.290.0050.04312.80
5.3.280.0070.05314.58
5.3.270.0030.05714.83
5.3.260.0130.06014.73
5.3.250.0030.05314.59
5.3.240.0070.08014.78
5.3.230.0000.05714.58
5.3.220.0070.05714.55
5.3.210.0070.05014.55
5.3.200.0270.05014.67
5.3.190.0070.05314.65
5.3.180.0130.04314.63
5.3.170.0170.03714.64
5.3.160.0030.05014.64
5.3.150.0170.04014.73
5.3.140.0070.07014.46
5.3.130.0030.05714.54
5.3.120.0100.05014.62
5.3.110.0030.05714.62
5.3.100.0030.07014.05
5.3.90.0030.05313.85
5.3.80.0030.05014.00
5.3.70.0070.05014.12
5.3.60.0030.05013.99
5.3.50.0130.04314.11
5.3.40.0100.04313.94
5.3.30.0100.04314.09
5.3.20.0030.06013.79
5.3.10.0130.06313.65
5.3.00.0000.05313.55
5.2.170.0030.04011.22
5.2.160.0000.04311.21
5.2.150.0000.04711.22
5.2.140.0070.05711.12
5.2.130.0030.04011.18
5.2.120.0030.04011.18
5.2.110.0030.04311.16
5.2.100.0130.03011.18
5.2.90.0070.03711.08
5.2.80.0030.05711.05
5.2.70.0130.03311.16
5.2.60.0000.04711.01
5.2.50.0000.04311.24
5.2.40.0100.03311.18
5.2.30.0000.04711.19
5.2.20.0070.03711.04
5.2.10.0030.03710.81
5.2.00.0100.03710.88
5.1.60.0130.0409.83
5.1.50.0030.03310.23
5.1.40.0000.05010.04
5.1.30.0100.03010.31
5.1.20.0030.03710.44
5.1.10.0070.03010.22
5.1.00.0070.03310.30
5.0.50.0000.0308.53
5.0.40.0030.0278.39
5.0.30.0000.0478.26
5.0.20.0030.0238.20
5.0.10.0070.0238.32
5.0.00.0000.0438.23
4.4.90.0030.0207.02
4.4.80.0000.0237.02
4.4.70.0030.0237.02
4.4.60.0000.0237.02
4.4.50.0030.0207.02
4.4.40.0000.0377.02
4.4.30.0130.0177.02
4.4.20.0030.0207.02
4.4.10.0000.0237.02
4.4.00.0030.0307.02
4.3.110.0000.0237.02
4.3.100.0030.0207.02
4.3.90.0030.0177.02
4.3.80.0030.0307.02
4.3.70.0000.0237.02
4.3.60.0070.0177.02
4.3.50.0000.0237.02
4.3.40.0000.0337.02
4.3.30.0000.0237.02
4.3.20.0030.0207.02
4.3.10.0000.0237.02
4.3.00.0130.0206.46

preferences:
36.67 ms | 400 KiB | 5 Q