3v4l.org

run code in 500+ 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.1.34, 8.2.28 - 8.2.31, 8.3.5 - 8.3.31, 8.4.4 - 8.4.22, 8.5.0 - 8.5.7
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:
61.83 ms | 675 KiB | 4 Q