3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh class x { public function content(?string $content = null) :(this, string) { if ($content) return $this->setContent($content); return $this->content; } public function setContent($x) { $this->content = $x; } } $x = new x; $x->set
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/IsiRH on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
<?hh class x { public function content(?string $content = null) :(this, string) { if ($content) return $this->setContent($content); return $this->content; } public function setContent($x) { $this->content = $x; } } $x = new x; $x->set