3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { function extra() { var_dump(self::$this); } } $test = new Test(); $test->extra();
based on F8vY4
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Access to undeclared static property: Test::$this in /in/Sv63d:5 Stack trace: #0 /in/Sv63d(9): Test->extra() #1 {main} thrown in /in/Sv63d on line 5
Process exited with code 255.
Output for 5.4.22 - 5.6.28
Fatal error: Access to undeclared static property: Test::$this in /in/Sv63d on line 5
Process exited with code 255.
Output for 5.3.19 - 5.4.21
object(Test)#1 (0) { }