3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh class A { public function getName(string $name): string { echo $name; } public function getName(int $name): int { echo $name; } } $a = new A(); $a->getName('Agop'); $a->getName(1);
based on 2Epum
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.32
<?hh class A { public function getName(string $name): string { echo $name; } public function getName(int $name): int { echo $name; } } $a = new A(); $a->getName('Agop'); $a->getName(1);