3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { function __construct() { $this->name ="manzoor"; $this->age =28; } } $foo = new foo(); echo $foo->name; echo {$foo->$name};
Output for 5.3.7 - 5.4.26
Parse error: syntax error, unexpected '{' in /in/hSFs3 on line 13
Process exited with code 255.