3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = [ 'id' => 1, 'field' => 2, ]; var_dump(array_intersect_key($arr,['id'=>'ololo']));
Output for 5.6.30
array(1) { ["id"]=> int(1) }