3v4l.org

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