3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = function() { return null; }; echo (int)isset( $foo ); // TRUE because you're testing $foo echo '-'; echo (int)isset( $foo() ); // FALSE because you're testing $foo's response
based on iOFA4
Output for 7.0.0 - 7.0.1
Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /in/aaeQQ on line 8
Process exited with code 255.
Output for 5.5.24 - 5.6.16
Fatal error: Cannot use isset() on the result of a function call (you can use "null !== func()" instead) in /in/aaeQQ on line 8
Process exited with code 255.
Output for 5.3.21 - 5.4.45
Fatal error: Can't use function return value in write context in /in/aaeQQ on line 8
Process exited with code 255.