3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { private $status = false; public function setStatus($status){ $this->status = $status; } public function isActiv(){ return ($this->status); } } $test = new Foo(); $test->setStatus(true); var_dump(isset($test->isActiv()));
based on kQKav
Output for 7.0.0 - 7.0.2
Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /in/khE4c on line 21
Process exited with code 255.
Output for 5.5.24 - 5.6.17
Fatal error: Cannot use isset() on the result of a function call (you can use "null !== func()" instead) in /in/khE4c on line 21
Process exited with code 255.
Output for 5.3.22 - 5.4.45
Fatal error: Can't use method return value in write context in /in/khE4c on line 21
Process exited with code 255.