3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date_obj = new DateTime(strtotime('07/2014')); $date_obj->modify('-2 day'); $date_formated = $date_obj->format('m/d/Y'); echo $date_formated; //echo $str;
based on F9pbd
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
05/16/2017