3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { throw new Exception("dddd"); } catch (Exception $e) { echo $e; } echo $e;
based on NFhRd
Output for 7.0.0 - 7.2.0
Exception: dddd in /in/Wffph:4 Stack trace: #0 {main}Exception: dddd in /in/Wffph:4 Stack trace: #0 {main}
Output for 5.3.18 - 5.6.28
exception 'Exception' with message 'dddd' in /in/Wffph:4 Stack trace: #0 {main}exception 'Exception' with message 'dddd' in /in/Wffph:4 Stack trace: #0 {main}