3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class a{ const foo = "test"; } class b{ public $obj = null; public function __construct(){ $this->obj = new a; } } $b = new b; echo {$b->obj}::foo; // Parse error!
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected '{' in /in/NcmOD on line 16
Process exited with code 255.