3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = array('green', 4 => '3', 'c' => 'yellow'); $b = array('green', 'c' => 'yellow', '4' => 0x3); $c = array('green', 'c' => 'yellow', '4' => '3'); var_dump($a == $b); // true identical, whatever the order var_dump($a === $b); // false identical, but not the order var_dump($c == $b); // true identical, with some type juggling var_dump($c === $b); // false identical, but not at the type level ?>

preferences:
48.21 ms | 714 KiB | 5 Q