3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} var_dump(class_exists(I));
Output for 8.1.0 - 8.1.30, 8.2.0 - 8.2.24, 8.3.0 - 8.3.12
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:
46.01 ms | 406 KiB | 5 Q