3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function __construct() { return $this; } public function a() { return "bingo"; } } echo (new A())->{"a"}();
Output for 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/JEMfp on line 14
Process exited with code 255.