3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public function bar() { $this = 'poop'; } } $d = new Foo; $d->bar();
Output for 5.3.0 - 5.4.19
Fatal error: Cannot re-assign $this in /in/jndtu on line 6
Process exited with code 255.