3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((string) new Exception("\0") . "foo");
Output for 7.0.0 - 7.2.0
string(52) "Exception: in /in/b1KWB:3 Stack trace: #0 {main}foo"
Output for 5.3.19 - 5.6.28
string(78) "exception 'Exception' with message '' in /in/b1KWB:3 Stack trace: #0 {main}foo"