3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class x { function x() { $this = '123'; } } var_dump(new x);
Output for 5.3.0 - 5.4.14
Fatal error: Cannot re-assign $this in /in/rcteF on line 7
Process exited with code 255.