3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_diff(array(array(1,2,3), array(1,5,3),1,2,3), array(3,2,1)));
based on 9uRXq
Output for 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/5KJ0Z on line 3 Notice: Array to string conversion in /in/5KJ0Z on line 3 array(2) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } [1]=> array(3) { [0]=> int(1) [1]=> int(5) [2]=> int(3) } }
Output for 5.4.0 - 5.6.28
Notice: Array to string conversion in /in/5KJ0Z on line 3 Notice: Array to string conversion in /in/5KJ0Z on line 3 Notice: Array to string conversion in /in/5KJ0Z on line 3 Notice: Array to string conversion in /in/5KJ0Z on line 3 Notice: Array to string conversion in /in/5KJ0Z on line 3 Notice: Array to string conversion in /in/5KJ0Z on line 3 Notice: Array to string conversion in /in/5KJ0Z on line 3 Notice: Array to string conversion in /in/5KJ0Z on line 3 Notice: Array to string conversion in /in/5KJ0Z on line 3 Notice: Array to string conversion in /in/5KJ0Z on line 3 array(2) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } [1]=> array(3) { [0]=> int(1) [1]=> int(5) [2]=> int(3) } }
Output for 4.3.0 - 5.3.29
array(2) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } [1]=> array(3) { [0]=> int(1) [1]=> int(5) [2]=> int(3) } }