3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $anArray = array(1, array(2,3)); $anotherArray = array(1, array(4,5)); var_dump((is_array($anArray) && is_array($anotherArray) && array_diff($anArray, $anotherArray) === array_diff($anotherArray, $anArray)));
based on kajaX
Output for hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 bool(true)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.6.28
Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 Notice: Array to string conversion in /in/N03En on line 7 bool(true)
Output for 4.3.0 - 5.3.29
bool(true)