3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $filter = array("isSystem" => TRUE, "isBlackList" => FALSE);$tag = new stdClass;$tag->id = 1;$tag->name = "Joho";$tag->isSystem = TRUE;$tag->isBlackList = TRUE;$result = array_diff($filter, $tag);print_r($result);
Output for 4.3.2 - 7.1.0
Warning: array_diff(): Argument #2 is not an array in /in/SGR3M on line 3
Output for 4.3.0 - 4.3.1
Warning: array_diff() [http://www.php.net/function.array-diff]: Argument #2 is not an array in /in/SGR3M on line 3