3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { public static function hey() { return $this; } } $out = new test; $hey = $out->hey(); var_dump($hey);
Output for 7.3.0rc3
Fatal error: Uncaught Error: Using $this when not in object context in /in/OnBoe:8 Stack trace: #0 /in/OnBoe(16): test::hey() #1 {main} thrown in /in/OnBoe on line 8
Process exited with code 255.