3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace CParent { class Helper{} class Test{ /** * @var Helper */ public $helper; public function __construnct() { $this->helper = new Helper(); } } } namespace Child { class Helper{} class Test extends \CParent\Test {} } namespace \ { $qwe = new Child\Test(); var_dump($qwe->helper); }
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '{', expecting identifier (T_STRING) in /in/L0uXX on line 27
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '{', expecting T_STRING in /in/L0uXX on line 27
Process exited with code 255.