3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array(); $array2 = null; $result = array_intersect($array1, $array2); print_r($result);
based on t4Bh3
Output for 7.3.0 - 7.3.1
Warning: array_intersect(): Expected parameter 2 to be an array, null given in /in/IR7te on line 4
Output for 4.3.2 - 7.2.13
Warning: array_intersect(): Argument #2 is not an array in /in/IR7te on line 4
Output for 4.3.0 - 4.3.1
Warning: array_intersect() [http://www.php.net/function.array-intersect]: Argument #2 is not an array in /in/IR7te on line 4