3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $month = 10; $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 JtiaB
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2014-10-01 Wednesday 2014-10-02 Thursday 2014-10-03 Friday 2014-10-04 Saturday 2014-10-05 Sunday 2014-10-06 Monday 2014-10-07 Tuesday 2014-10-08 Wednesday 2014-10-09 Thursday 2014-10-10 Friday 2014-10-11 Saturday 2014-10-12 Sunday 2014-10-13 Monday 2014-10-14 Tuesday 2014-10-15 Wednesday 2014-10-16 Thursday 2014-10-17 Friday 2014-10-18 Saturday 2014-10-19 Sunday 2014-10-20 Monday 2014-10-21 Tuesday 2014-10-22 Wednesday 2014-10-23 Thursday 2014-10-24 Friday 2014-10-25 Saturday 2014-10-26 Sunday 2014-10-26 Sunday 2014-10-27 Monday 2014-10-28 Tuesday 2014-10-29 Wednesday 2014-10-30 Thursday 2014-10-31 Friday
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-01 WednesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-02 ThursdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-03 FridayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-04 SaturdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-05 SundayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-06 MondayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-07 TuesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-08 WednesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-09 ThursdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-10 FridayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-11 SaturdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-12 SundayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-13 MondayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-14 TuesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-15 WednesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-16 ThursdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-17 FridayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-18 SaturdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-19 SundayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-20 MondayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-21 TuesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-22 WednesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-23 ThursdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-24 FridayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-25 SaturdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-26 SundayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-26 SundayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-27 MondayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-28 TuesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-29 WednesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-30 ThursdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/T6Hci on line 10 2014-10-31 FridayPHP_EOL