3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Text { protected $text; public function __construct($text) { $this->text = $text; } public function hello() : int { return $this->text; } } var_dump((new Text(1))->hello());

This is an error 404

There are `0` results


preferences:
143.6 ms | 1390 KiB | 7 Q