3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = date_create(); $shipping_date = date_add($date,date_interval_create_from_date_string("3 days")); echo $shipping_date;
based on G5Lm9
Output for 7.1.0 - 7.3.0rc3
Recoverable fatal error: Object of class DateTime could not be converted to string in /in/dFLGA on line 7
Process exited with code 255.
Output for 5.6.38 - 7.0.28
Catchable fatal error: Object of class DateTime could not be converted to string in /in/dFLGA on line 7
Process exited with code 255.