3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1 = array("Cars", "Trucks", "Vans", "Boats",); $a2 = array('Boats', 'Trucks', 'Vans', 'Cars'); $a3 = array('Cars', 'Trucks', 'Vans', 'Boats'); $d1 = array_diff($a1, $a2); $d2 = array_diff($a2, $a3); $d3 = array_diff($a1, $a3); $e1 = $a1 === $a2; $e2 = $a2 === $a3; $e3 = $a1 === $a3; var_dump(/*$d1, $d2, $d3, */$e1, $e2, $e3);
Output for 4.3.0 - 7.1.0
bool(false) bool(false) bool(true)