3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); echo 'null == false? ', (null == false) ? 'yes' : 'no', "\n"; echo 'null == 0 ? ', (null == 0) ? 'yes' : 'no', "\n"; echo 'null == "0" ? ', (null == "0") ? 'yes' : 'no', "\n"; echo 'null == $foo ? ', (null == $foo) ? 'yes' : 'no', "\n"; echo 'null == "" ? ', (null == "") ? 'yes' : 'no', "\n"; echo 'false == 0 ? ', (false == 0) ? 'yes' : 'no', "\n"; echo 'false == "0" ? ', (false == "0") ? 'yes' : 'no', "\n"; echo 'false == $foo ? ', (false == $undefined) ? 'yes' : 'no', "\n"; echo 'false == "" ? ', (false == "") ? 'yes' : 'no', "\n"; echo '0 == "0" ? ', (0 == "0") ? 'yes' : 'no', "\n"; echo '0 == $foo ? ', (0 == $undefined) ? 'yes' : 'no', "\n"; echo '0 == "" ? ', (0 == "") ? 'yes' : 'no', "\n"; echo '"0" == $foo ? ', ("0" == $undefined) ? 'yes' : 'no', "\n"; echo '"0" == "" ? ', ("0" == "") ? 'yes' : 'no', "\n"; echo '$foo == "" ? ', ($undefined == "") ? 'yes' : 'no', "\n";
Output for git.master, git.master_jit, rfc.property-hooks
null == false? yes null == 0 ? yes null == "0" ? no null == $foo ? yes null == "" ? yes false == 0 ? yes false == "0" ? yes false == $foo ? yes false == "" ? yes 0 == "0" ? yes 0 == $foo ? yes 0 == "" ? no "0" == $foo ? no "0" == "" ? no $foo == "" ? yes

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:
45.39 ms | 402 KiB | 8 Q