3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = date(); $shipping_date = date_add($date, "3 days"); echo $shipping_date;
Output for 7.3.0alpha1 - 7.3.0rc4
Warning: date() expects at least 1 parameter, 0 given in /in/oeGRl on line 3 Warning: date_add() expects parameter 1 to be DateTime, bool given in /in/oeGRl on line 5
Output for 5.6.38 - 7.2.11
Warning: date() expects at least 1 parameter, 0 given in /in/oeGRl on line 3 Warning: date_add() expects parameter 1 to be DateTime, boolean given in /in/oeGRl on line 5