3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh // decl interface Z2 {} class Z_TRAIT_IMPL implements Z1, Z2 {} interface Z1 extends Z2 {}
based on 9gcY7
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Parse error: syntax error, unexpected 'interface' (T_INTERFACE) in /in/218tX on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Undefined interface: Z1 in /in/218tX:5 Stack trace: #0 {main}
Process exited with code 255.