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 3qn1H
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-09-01 Monday 2014-09-02 Tuesday 2014-09-03 Wednesday 2014-09-04 Thursday 2014-09-05 Friday 2014-09-06 Saturday 2014-09-07 Sunday 2014-09-08 Monday 2014-09-09 Tuesday 2014-09-10 Wednesday 2014-09-11 Thursday 2014-09-12 Friday 2014-09-13 Saturday 2014-09-14 Sunday 2014-09-15 Monday 2014-09-16 Tuesday 2014-09-17 Wednesday 2014-09-18 Thursday 2014-09-19 Friday 2014-09-20 Saturday 2014-09-21 Sunday 2014-09-22 Monday 2014-09-23 Tuesday 2014-09-24 Wednesday 2014-09-25 Thursday 2014-09-26 Friday 2014-09-27 Saturday 2014-09-28 Sunday 2014-09-29 Monday 2014-09-30 Tuesday
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/JtiaB on line 10 2014-09-01 MondayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-02 TuesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-03 WednesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-04 ThursdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-05 FridayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-06 SaturdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-07 SundayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-08 MondayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-09 TuesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-10 WednesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-11 ThursdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-12 FridayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-13 SaturdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-14 SundayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-15 MondayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-16 TuesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-17 WednesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-18 ThursdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-19 FridayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-20 SaturdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-21 SundayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-22 MondayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-23 TuesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-24 WednesdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-25 ThursdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-26 FridayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-27 SaturdayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-28 SundayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-29 MondayPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/JtiaB on line 10 2014-09-30 TuesdayPHP_EOL