3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Foo { public function __construct(private int $x){}; public function xPrinter() { return () ==> print $this->x; } } $bar = new Foo(42); $xPrinter = $bar->xPrinter(); $xPrinter();

This is an error 404

There are `0` results


preferences:
139.82 ms | 1399 KiB | 7 Q