3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A extends C {} class B extends D {} class C extends B {} class D extends A {}
Output for 5.2.3 - 7.1.0
Fatal error: Class 'C' not found in /in/4RIpB on line 3
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Fatal error</b>: Class 'C' not found in <b>/in/4RIpB</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.9
<br /> <b>Fatal error</b>: Class a: Cannot inherit from undefined class c in <b>/in/4RIpB</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Class a: Cannot inherit from undefined class c in <b>/in/4RIpB</b> on line <b>3</b><br />