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; } }
Output for 5.3.0 - 5.4.32
<?hh class x { public function content(?string $content = null) :(this, string) { if ($content) return $this->setContent($content); return $this->content; } }