3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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 == $undefined? ', (null == $undefined) ? '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 == $undefined? ', (false == $undefined) ? 'yes' : 'no', "\n"; echo 'false == ""? ', (false == "") ? 'yes' : 'no', "\n"; echo '0 == "0"? ', (0 == "0") ? 'yes' : 'no', "\n"; echo '0 == $undefined? ', (0 == $undefined) ? 'yes' : 'no', "\n"; echo '0 == ""? ', (0 == "") ? 'yes' : 'no', "\n"; echo '"0" == $undefined? ', ("0" == $undefined) ? 'yes' : 'no', "\n"; echo '"0" == ""? ', ("0" == "") ? 'yes' : 'no', "\n"; echo '$undefined == ""? ', ($undefined == "") ? 'yes' : 'no', "\n";
Output for git.master, git.master_jit, rfc.property-hooks
null == false? yes null == 0? yes null == "0"? no null == $undefined? Warning: Undefined variable $undefined in /in/SZhsg on line 6 yes null == ""? yes false == 0? yes false == "0"?yes false == $undefined? Warning: Undefined variable $undefined in /in/SZhsg on line 11 yes false == ""? yes 0 == "0"? yes 0 == $undefined? Warning: Undefined variable $undefined in /in/SZhsg on line 15 yes 0 == ""? no "0" == $undefined? Warning: Undefined variable $undefined in /in/SZhsg on line 18 no "0" == ""? no $undefined == ""? Warning: Undefined variable $undefined in /in/SZhsg on line 21 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:
38.84 ms | 402 KiB | 8 Q