3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test () { phpinfo(); throw new Exception(); } register_shutdown_function('test');
Output for 7.0.0 - 7.3.0rc4
Warning: phpinfo() has been disabled for security reasons in /in/Wcmv7 on line 4 Fatal error: Uncaught Exception in /in/Wcmv7:5 Stack trace: #0 [internal function]: test() #1 {main} thrown in /in/Wcmv7 on line 5
Process exited with code 255.
Output for 5.3.6 - 5.3.29, 5.4.7 - 5.6.28
Warning: phpinfo() has been disabled for security reasons in /in/Wcmv7 on line 4 Fatal error: Uncaught exception 'Exception' in /in/Wcmv7:5 Stack trace: #0 [internal function]: test() #1 {main} thrown in /in/Wcmv7 on line 5
Process exited with code 255.
Output for 5.4.0 - 5.4.6
Warning: phpinfo() has been disabled for security reasons in /in/Wcmv7 on line 4 Fatal error: Uncaught exception 'Exception' in /in/Wcmv7:5 Stack trace: #0 [internal function]: test() #1 {main} thrown in /in/Wcmv7 on line 5
Output for 5.3.0 - 5.3.5
Warning: phpinfo() has been disabled for security reasons in /in/Wcmv7 on line 4 Fatal error: Exception thrown without a stack frame in Unknown on line 0
Process exited with code 255.