3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $selected=array('11a_Ma1','11a_Sc2','11b_Ls1'); $already=array('11SJP','11a_Ma1','11a_Sc2'); print_r(array_diff($selected,$alreasy));
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: alreasy in /in/gVgOT on line 4 Warning: array_diff(): Argument #2 is not an array in /in/gVgOT on line 4
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: alreasy in /in/gVgOT on line 4 Warning: array_diff(): Argument #2 is not an array in /in/gVgOT on line 4
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: alreasy in /in/gVgOT on line 4 Warning: array_diff() [http://www.php.net/function.array-diff]: Argument #2 is not an array in /in/gVgOT on line 4