3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh class Text { protected $text; public function __construct(int $text) { $this->text = $text; } public function hello() { return $this->text; } } var_dump((new Text('hello'))->hello());
Output for 5.3.0 - 5.4.32
<?hh class Text { protected $text; public function __construct(int $text) { $this->text = $text; } public function hello() { return $this->text; } } var_dump((new Text('hello'))->hello());