3v4l.org

run code in 300+ PHP versions simultaneously
<?hh type Point<int> = shape('x' => int, 'y' => 0); function demo3(Point<int> $pt1) {} // special case for Point of type int where y is 0

This is an error 404

There are `0` results


preferences:
143.93 ms | 1399 KiB | 7 Q