3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh interface StringConverter { public function toUpperCase(string $str) : string; } class Test implements StringConverter { public function toUpperCase(string $str) : string { return strtoupper($str); } } $t = new Test; var_dump($t->toUpperCase('re4k'));
Output for 5.3.0 - 5.4.32
<?hh interface StringConverter { public function toUpperCase(string $str) : string; } class Test implements StringConverter { public function toUpperCase(string $str) : string { return strtoupper($str); } } $t = new Test; var_dump($t->toUpperCase('re4k'));