3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['foo' => 'bar', 'baz' => 'bam']; $b = ['foo' => null, 'baz' => null, 'blamo' => null]; var_dump(array_intersect_key($a, $b));
Output for 5.5.0 - 7.3.0beta1
array(2) { ["foo"]=> string(3) "bar" ["baz"]=> string(3) "bam" }