3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ValidationError implements \Throwable { public function getTrace(): array { return []; } // <--- zero-cost like oxygen :D }
Output for 8.5.0 - 8.5.3
Fatal error: Class ValidationError cannot implement interface Throwable, extend Exception or Error instead in /in/ekl3s on line 2 Stack trace: #0 {main}
Process exited with code 255.
Output for 8.1.34, 8.2.27 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18
Fatal error: Class ValidationError cannot implement interface Throwable, extend Exception or Error instead in /in/ekl3s on line 2
Process exited with code 255.

preferences:
55.44 ms | 729 KiB | 4 Q