3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $nullvar = null; $nullstr = ''; $notnull = 'foo'; $unset = 'something'; unset($unset); function quiet_dump($v) { ob_start(); var_dump($v); return ob_get_clean(); } $results = array( '==Results==' , '$nullvar = ' . quiet_dump(isset($nullvar), true) , '$nullstr = ' . quiet_dump(isset($nullstr), true) , '$notnull = ' . quiet_dump(isset($notnull), true) , '$unset = ' . quiet_dump(isset($unset), true) ); echo implode("\n",$results);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
==Results== $nullvar = bool(false) $nullstr = bool(true) $notnull = bool(true) $unset = bool(false)