3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $month = 10; $monthName = date('M', strtotime('2012-'.$month.'-01')); echo $monthName."\r\n"; echo date('d.m.Y H:i:s', strtotime('first day of '.$monthName))."\r\n"; echo date('d.m.Y H:i:s', strtotime('last day of '.$monthName.', 23:59:59'))."\r\n";
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Oct 01.10.2014 00:00:00 31.10.2014 23:59:59
Output for 5.1.0 - 5.2.17
Oct 01.01.1970 01:00:00 01.01.1970 01:00:00
Output for 4.3.0 - 5.0.5
Oct 01.01.1970 00:59:59 01.01.1970 00:59:59