3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = array_diff_assoc(array('a' => array(true)), '2'); var_dump($result);
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_diff_assoc(): Argument #2 is not an array in /in/rhVsl on line 3 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: expects array(s) in /in/rhVsl on line 3 NULL
Output for 4.3.0 - 4.3.1
Warning: array_diff_assoc() [http://www.php.net/function.array-diff-assoc]: Argument #2 is not an array in /in/rhVsl on line 3 NULL