3v4l.org

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