3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array_diff(array('find'), 'ola'); var_dump($a);
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_diff(): Argument #2 is not an array in /in/bSN5p on line 2 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: array_diff() expects parameter 2 to be an array or collection in /in/bSN5p on line 2 NULL
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/bSN5p on line 2 NULL