3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $anArray = array(array('black')); $anotherArray = array(array('white')); var_dump((is_array($anArray) && is_array($anotherArray) && array_diff($anArray, $anotherArray) == array_diff($anotherArray, $anArray)));
based on kMKqq
Output for 5.4.0 - 7.1.7
Notice: Array to string conversion in /in/SIhAF on line 6 Notice: Array to string conversion in /in/SIhAF on line 6 Notice: Array to string conversion in /in/SIhAF on line 6 Notice: Array to string conversion in /in/SIhAF on line 6 bool(true)
Output for 4.3.0 - 5.3.29
bool(true)