3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { private $a; public static function C() { var_dump(isset($this)); return $this->a; } public function F() { $f = function() { return $this->a; } return $this; } }
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'return' (T_RETURN) in /in/QptZX on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_RETURN in /in/QptZX on line 13
Process exited with code 255.