3v4l.org

run code in 300+ PHP versions simultaneously
<?php function throwThings() { throw new \Exception(''); } try { throwThings('MyPassword'); } catch (\Error $e) { print_r($e); print_r($e->getTrace()); }
Output for 8.2.28 - 8.2.29, 8.3.5 - 8.3.25, 8.4.4 - 8.4.12
Fatal error: Uncaught Exception in /in/8lBso:4 Stack trace: #0 /in/8lBso(8): throwThings('MyPassword') #1 {main} thrown in /in/8lBso on line 4
Process exited with code 255.

preferences:
50.25 ms | 406 KiB | 5 Q