3v4l.org

run code in 300+ PHP versions simultaneously
<?hh type Point<T> = shape ('x' => T, 'y' => T); function demo1(Point<T> $pt1){} // do stufff - general case type Point<int> = shape ('x' => int, 'y' => int); function demo2(Point<int> $pt1) {} // special case for Point of type int only type Point<int> = shape('x' => 1, 'y' => 2); 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:
137.55 ms | 1390 KiB | 7 Q