3v4l.org

run code in 300+ PHP versions simultaneously
<?hh namespace A { class T {} } namespace { $hello = 42; class Test { public function first(string $str): Closure { return function(): int use ($str) { return strlen($str); }; } public function second(int $i): self { } } $t = new Test; echo ($t->first("hello"))(); }

This is an error 404

There are `0` results


preferences:
155.61 ms | 1399 KiB | 7 Q