3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //echo date('-m-d', strtotime('+ 15 days')); $d = new DateTime('2017-01-19'); $d->modify('fifteenth day of this month'); //cho date("Y-m-d",$d); echo print_r($d,1);
based on rv3G3
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
Warning: DateTime::modify(): Failed to parse time string (fifteenth day of this month) at position 0 (f): The timezone could not be found in the database in /in/FVKlU on line 5 DateTime Object ( [date] => 2017-01-19 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )