3v4l.org

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