3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $month = 9; $year = 2014; $start = mktime(0, 0, 0, $month, 1, $year); $now = $start; while (date('n', $now) != $month) { echo date('Y-m-d l', $now) . PHP_EOL; $now += 86400; }
based on 4OUro
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0