3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array('one', 'two', 'three'); $array2 = array('one', 'two', 'three'); function validate($array, $array2) { return array_diff($array, $array2); } var_dump(validate($array1, $array2));
based on SHVDf
Output for 5.3.19 - 7.2.0
array(0) { }