3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $year = 2014; $month = 5; $start_day = date('Y-m-01',strtotime("$year-$month-01")); $end_day = date('Y-m-d',strtotime("$start_day +1 month")-1);
Output for 4.3.0 - 7.1.0