3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Colorful {} class Hearts extends Suit {} class Suit implements Colorful {}
Output for 8.0.0 - 8.0.3
Fatal error: Uncaught Error: Class "Suit" not found in /in/KvRl8:5 Stack trace: #0 {main} thrown in /in/KvRl8 on line 5
Process exited with code 255.
Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.13
Fatal error: Uncaught Error: Class 'Suit' not found in /in/KvRl8:5 Stack trace: #0 {main} thrown in /in/KvRl8 on line 5
Process exited with code 255.
Output for 7.2.0 - 7.2.34
Fatal error: Class 'Suit' not found in /in/KvRl8 on line 5
Process exited with code 255.