3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { function bar() { echo $this; } } $this = 1; Foo::bar();
Output for 5.3.0 - 5.4.25
Fatal error: Cannot re-assign $this in /in/YT0ME on line 9
Process exited with code 255.