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 ?>
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.21, 8.5.0 - 8.5.6
bool(true) bool(false) bool(true) bool(false)

preferences:
40.47 ms | 713 KiB | 4 Q