3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.26
Parse error: syntax error, unexpected '{' in /in/hSFs3 on line 13
Process exited with code 255.

preferences:
179.42 ms | 1395 KiB | 56 Q