3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(array(1)); $b = array(array(2)); if (compare_consignment($a, $b)) { echo 'Mached'; } else { echo 'Not matched'; } function compare_consignment($original, $con) { if(count($original) != count($con)) { return FALSE; } foreach ($original as $val) { if (!in_array($val, $con)) { return FALSE; } } return TRUE; }
Output for 4.3.0 - 7.1.0
Not matched