3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = strtotime('2013-05-06'); $dateLast = strtotime("first day of last month UTC", $date); echo date('d.m.y',$dateLast);
Output for 5.3.0 - 7.1.0
01.04.13
Output for 4.3.0 - 5.2.17
01.01.70