3v4l.org

run code in 500+ PHP versions simultaneously
<?php // this is FATAL ERROR class A extends B {} class B extends C {} class C {}
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.31, 8.3.0 - 8.3.31, 8.4.1 - 8.4.22, 8.5.0 - 8.5.7
Fatal error: Uncaught Error: Class "B" not found in /in/GGUVm:5 Stack trace: #0 {main} thrown in /in/GGUVm on line 5
Process exited with code 255.

preferences:
65.69 ms | 880 KiB | 4 Q