3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "null != 'string' -> "; var_dump(null != 'string'); echo "false != 'string' -> "; var_dump(false != 'string'); echo "0 != 'string' -> "; var_dump(0 != 'string'); echo "1 != 'string' -> "; var_dump(1 != 'string');
based on d9o6T
Output for 4.3.0 - 7.1.0
null != 'string' -> bool(true) false != 'string' -> bool(true) 0 != 'string' -> bool(false) 1 != 'string' -> bool(true)