3v4l.org

run code in 300+ PHP versions simultaneously
<?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()));
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.5.31, 5.6.8 - 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.

preferences:
165.98 ms | 1395 KiB | 28 Q