3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(string $v) { throw new Exception; } try { a(); } catch (Exception $e) { echo (string) $e; }
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
Fatal error: Uncaught ArgumentCountError: Too few arguments to function a(), 0 passed in /in/NvdgC on line 10 and exactly 1 expected in /in/NvdgC:3 Stack trace: #0 /in/NvdgC(10): a() #1 {main} thrown in /in/NvdgC on line 3
Process exited with code 255.

preferences:
88.37 ms | 402 KiB | 89 Q