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(); echo '<pre>'; var_dump($v); echo '</pre>'; 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 - 7.1.0
==Results== $nullvar = <pre>bool(false) </pre> $nullstr = <pre>bool(true) </pre> $notnull = <pre>bool(true) </pre> $unset = <pre>bool(false) </pre>