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.1.34, 8.2.28 - 8.2.30, 8.3.5 - 8.3.30, 8.4.4 - 8.4.18, 8.5.0 - 8.5.3
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:
47.12 ms | 653 KiB | 4 Q