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 git.master_jit, git.master
bool(true) bool(false) bool(true) bool(false)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
31.02 ms | 713 KiB | 4 Q