3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Z2 {} class Z_TRAIT_IMPL implements Z1, Z2 {} interface Z1 extends Z2 {}
based on 218tX
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Fatal error: Interface 'Z1' not found in /in/E7tY5 on line 5
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Undefined interface: Z1 in /in/E7tY5:5 Stack trace: #0 {main}
Process exited with code 255.