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('m.d.y',$dateLast);
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
04.01.13
Output for 4.3.0 - 5.2.17
01.01.70