3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh class MyClass { public function alpha(): int { return 1; } public function beta(): string { return 'hi test'; } } function f(MyClass $my_inst): int { // Fix me! return $my_inst->alpha(); }
Output for hhvm-3.12.0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.32
<?hh class MyClass { public function alpha(): int { return 1; } public function beta(): string { return 'hi test'; } } function f(MyClass $my_inst): int { // Fix me! return $my_inst->alpha(); }