3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array(); $array2 = array(); $result = array_intersect($array1, $array2, null); print_r($result);
based on 9u05s
Output for 4.3.2 - 7.2.0
Warning: array_intersect(): Argument #3 is not an array in /in/M7nLh on line 4
Output for 4.3.0 - 4.3.1
Warning: array_intersect() [http://www.php.net/function.array-intersect]: Argument #3 is not an array in /in/M7nLh on line 4