3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} var_dump(class_exists(I));
Output for 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Fatal error: Uncaught Error: Undefined constant "I" in /in/qJf7p:5 Stack trace: #0 {main} thrown in /in/qJf7p on line 5
Process exited with code 255.

preferences:
54.73 ms | 410 KiB | 6 Q