3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((string) new \RuntimeException('test'));
Output for 7.0.28 - 7.3.0rc3
string(60) "RuntimeException: test in /in/KaQOv:3 Stack trace: #0 {main}"
Output for 5.6.38
string(86) "exception 'RuntimeException' with message 'test' in /in/KaQOv:3 Stack trace: #0 {main}"