3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $keys = ['foo', 'bar']; $arr = ['fto' => 'fuu', 'baz' => 'BAZ']; $diff = array_diff($keys, array_keys($arr)); var_dump($diff);
Output for 7.3.0rc3
array(2) { [0]=> string(3) "foo" [1]=> string(3) "bar" }