3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo($bar) { $errmsg = 'just dont do it'; throw new Exception( $errmsg ); } $var = 'password'; foo($var);
based on rhL4p
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: just dont do it in /in/aE86b:5 Stack trace: #0 /in/aE86b(8): foo('password') #1 {main} thrown in /in/aE86b on line 5
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'just dont do it' in /in/aE86b:5 Stack trace: #0 /in/aE86b(8): foo('password') #1 {main} thrown in /in/aE86b on line 5
Process exited with code 255.