3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = strtotime('2013-05-06'); $dateLast = strtotime("first day of last month UTC", $date); echo date('m.d.y',$dateLast);

preferences:
45.8 ms | 402 KiB | 5 Q