3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo null == 0? 'true': 'false'; echo 0 == "0"? 'true': 'false'; echo "0" == 0? 'true': 'false'; echo "0" == null? 'true' : 'false'; echo null == "0"? 'true' : 'false'; echo 0 == null? 'true' : 'false'; echo "" == 0? 'true' : 'false'; $test = new stdClass(); echo $test == ""? 'true' : 'false';
based on lWsNG
Output for 5.3.19 - 7.3.0rc4
truetruetruefalsefalsetruetruefalse