3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array("apple", "banana"); $b = array(1 => "banana", "0" => "apple"); var_dump($a == $b); // bool(true) var_dump($a === $b); // bool(false) echo $a; echo $b; ?>
based on DRQA2
Output for 5.4.0 - 7.1.0
bool(true) bool(false) Notice: Array to string conversion in /in/5hVKK on line 7 Array Notice: Array to string conversion in /in/5hVKK on line 8 Array
Output for 4.3.0 - 5.3.29
bool(true) bool(false) ArrayArray