3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php$filter = array('isBlackList' => TRUE);$tag = array('id' => 5,'name' => "tag name",'publicName' => "public name",'isBlackList' => TRUE,'isPublic' => TRUE,'isStreet' => FALSE,'isSystem' => TRUE,'isReadOnly' => TRUE,'contactsCount' => 8);var_dump(array_diff($filter,$tag));
based on VvITS
Output for 5.4.0 - 5.4.32
<?php$filter = array('isBlackList' => TRUE);$tag = array('id' => 5,'name' => "tag name",'publicName' => "public name",'isBlackList' => TRUE,'isPublic' => TRUE,'isStreet' => FALSE,'isSystem' => TRUE,'isReadOnly' => TRUE,'contactsCount' => 8);var_dump(array_diff($filter,$tag));