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); } } var_dump(new x); gggg
Output for 5.4.0 - 5.4.8
Parse error: syntax error, unexpected end of file in /in/5n6sV on line 21
Process exited with code 255.
Output for 5.3.0 - 5.3.18
Parse error: syntax error, unexpected $end in /in/5n6sV on line 21
Process exited with code 255.