3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo() { throw new \Exception("Oh no, it's no good"); } try { foo(); } catch (\Exception $e) { var_dump((string)$e); }
Output for 7.0.0 - 7.2.0
string(91) "Exception: Oh no, it's no good in /in/4eeTo:3 Stack trace: #0 /in/4eeTo(7): foo() #1 {main}"
Output for 5.3.19 - 5.6.28
string(117) "exception 'Exception' with message 'Oh no, it's no good' in /in/4eeTo:3 Stack trace: #0 /in/4eeTo(7): foo() #1 {main}"