3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh class demo<T, Z> { type RET = demo<T> + demo<T>; } class demo<T> { type RET<T> = T; } type test = shape('demo' => demo<1,2>); //type Point<T> = shape ('x' => T, 'y' => T);
Output for 5.3.0 - 5.4.32
<?hh class demo<T, Z> { type RET = demo<T> + demo<T>; } class demo<T> { type RET<T> = T; } type test = shape('demo' => demo<1,2>); //type Point<T> = shape ('x' => T, 'y' => T);