3v4l.org

run code in 200+ PHP versions simultaneously
<?php function foo() { throw new SodiumException('test'); } foo();
Output for 7.2.0 - 7.2.13, 7.4.0
Fatal error: Uncaught SodiumException: test in /in/io3Gd:5 Stack trace: #0 /in/io3Gd(7): foo() #1 {main} thrown in /in/io3Gd on line 5
Process exited with code 255.
Output for 7.3.0

Process exited with code 139.
Output for 7.0.33 - 7.1.25
Fatal error: Uncaught Error: Class 'SodiumException' not found in /in/io3Gd:5 Stack trace: #0 /in/io3Gd(7): foo() #1 {main} thrown in /in/io3Gd on line 5
Process exited with code 255.
Output for 5.6.38
Fatal error: Class 'SodiumException' not found in /in/io3Gd on line 5
Process exited with code 255.