3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo nl2br(new DateTime());
Output for 5.6.30, hhvm-3.15.4 - 3.21.3, 7.0.0 - 7.3.0rc3
Warning: nl2br() expects parameter 1 to be string, object given in /in/hG6VF on line 3
Output for hhvm-3.22.0
Warning: nl2br() expects parameter 1 to be string, object given in /in/hG6VF on line -1