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( '<h1>Results</h1>' , '<br/>$nullvar = ' , quiet_dump(isset($nullvar), true) , '<br/> $nullstr = ' , quiet_dump(isset($nullstr), true) , '<br/>$notnull = ' , quiet_dump(isset($notnull), true) , '<br/>$unset = ' , quiet_dump(isset($unset), true) ); echo impode(' ',$results);
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/DqWkF on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ECHO in /in/DqWkF on line 13
Process exited with code 255.