3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=12; $year=2014; $startDate = strtotime($month.'/1/'.$year); $stopDate = strtotime('last day of this month ',$startDate); echo (date('Y-m-d',$startDate).' - '.date('Y-m-d',$stopDate));

preferences:
40.24 ms | 402 KiB | 5 Q