3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr1 = array('cola/loca/archivo', 'otra cosa/mariposa'); $arr2 = array('cola/loca/archivo','cola/loca'); $arr_result = array_unique($arr1, $arr2); print_r($arr_result);
based on ak6Q5
Output for 7.0.0 - 7.2.0
Warning: array_unique() expects parameter 2 to be integer, array given in /in/5FrZE on line 6
Output for 5.3.21 - 5.6.28
Warning: array_unique() expects parameter 2 to be long, array given in /in/5FrZE on line 6