run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(isset('foo')); var_dump(isset('')); var_dump(isset(null)); var_dump(isset(0)); var_dump(isset(1)); var_dump(isset([])); var_dump(isset([1]));
based on Gmuec
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /in/qVuvZ on line 3
Process exited with code 255.
Output for hhvm-3.15.4
bool(true) bool(true) bool(false) bool(true) bool(true) bool(true) bool(true)