3v4l.org

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