3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a', 'a', 'b'); $b = array('a', 'b', 'b'); if (sizeof($a)==sizeof($b) AND array_diff($a,$b)==array()) { echo 'fail' . "\n"; } if (count(array_diff(array_merge($a, $b), array_intersect($a, $b))) === 0) { echo 'fail2' . "\n"; } ?>
Output for 4.3.0 - 7.1.0
fail fail2