3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class TestingMethods { public int get() { return (int) 1; } public function get($withParams) { return (int) 2; } public function getSomething(String $something) { return "something $something"; } public function getSomething() { return "something do with with no @params"; } } $t = new TestingMethods(); $one = $t->get(); $two = $t->get($withParams); $something = $t->getSomething("something..."); $something2 = $t->getSomething(); var_dump($one); var_dump($two); var_dump($something); var_dump($something2); ?>

This is an error 404

There are `0` results


preferences:
136.92 ms | 1399 KiB | 7 Q