3v4l.org

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