3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (function_exists('date_default_timezone_set')) { date_default_timezone_set("Europe/London"); } echo date('m/Y', strtotime("-5 month", strtotime("first day of this month"))); echo date('m/Y', strtotime("-5 month", strtotime("first day this month")));
Output for 5.3.3 - 7.1.7
02/201403/2014
Output for 5.3.0 - 5.3.2
02/201402/2014
Output for 4.3.0 - 5.0.5, 5.1.3 - 5.2.17
08/196903/2014
Output for 5.1.0 - 5.1.2
01/197003/2014