3v4l.org

run code in 300+ PHP versions simultaneously
<?hh function foo(): (function(string): string) { $x = 'bar'; return $y ==> $x . $y; } function test(): void { $fn = foo(); echo $fn('baz'); // barbaz }

This is an error 404

There are `0` results


preferences:
159.96 ms | 1399 KiB | 7 Q