3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { function bar() { $this = 1; } } $f = new Foo(); $f->bar(); var_dump($f);
Output for 5.3.7 - 5.4.26
Fatal error: Cannot re-assign $this in /in/FEeEu on line 5
Process exited with code 255.