3v4l.org

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