3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [1 => 'a', 2=> 'b', 3 => 'c']; $b = [1, 3]; var_dump(array_intersect_key($a, $b))