3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = isset($result, $result->property, $result->f()); //this is definitely an expression, no questions $a = isset($result, $result->property, $result::c); //may be this one not an expression in PHP? What do I know? $a = isset($result, $result->property, $result->f()->a); //this one is also definitely an expression. But in PHP you never know.
based on gU7oN
Output for 7.0.0 - 7.1.6
Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /in/QtXnj on line 2
Process exited with code 255.
Output for hhvm-3.10.1 - 3.17.3
Output for 5.5.0 - 5.6.30
Fatal error: Cannot use isset() on the result of a function call (you can use "null !== func()" instead) in /in/QtXnj on line 2
Process exited with code 255.
Output for 5.0.0 - 5.4.45
Fatal error: Can't use method return value in write context in /in/QtXnj on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '(', expecting ',' or ')' in /in/QtXnj on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '(', expecting ',' or ')' in /in/QtXnj on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `')'' in /in/QtXnj on line 2
Process exited with code 255.