3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(string $v) { throw new Exception; } try { a("vvv"); } catch (Exception $exception) { printf( "%s: %s in %s:%d\nStack trace:\n%s\n", get_class($exception), $exception->getMessage(), $exception->getFile(), $exception->getLine(), $exception->getTraceAsString() ); }
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Exception: in /in/A2Cho:5 Stack trace: #0 /in/A2Cho(10): a('vvv') #1 {main}

preferences:
98.91 ms | 402 KiB | 89 Q