3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array('hello'); $array2 = array('hello', 'world'); print_r( array_unique($array1, $array2));
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: array_unique() expects parameter 2 to be integer, array given in /in/8BaY1 on line 6
Output for 5.2.9 - 5.6.28
Warning: array_unique() expects parameter 2 to be long, array given in /in/8BaY1 on line 6
Output for 4.3.0 - 5.2.8
Warning: Wrong parameter count for array_unique() in /in/8BaY1 on line 6