3v4l.org

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