3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = strtotime("first Monday of ".$monthname." ".$year); while($time <= strtotime("last Monday of ".$monthname." ".$year)) { echo date('jS',$time)." ".$monthname; $time += (7*24*60*60); //Advance One Week. } ?>
Output for 5.3.0 - 7.1.0
Notice: Undefined variable: monthname in /in/TiNlu on line 2 Notice: Undefined variable: year in /in/TiNlu on line 2 Notice: Undefined variable: monthname in /in/TiNlu on line 3 Notice: Undefined variable: year in /in/TiNlu on line 3 Notice: Undefined variable: monthname in /in/TiNlu on line 4 7th Notice: Undefined variable: monthname in /in/TiNlu on line 3 Notice: Undefined variable: year in /in/TiNlu on line 3 Notice: Undefined variable: monthname in /in/TiNlu on line 4 14th Notice: Undefined variable: monthname in /in/TiNlu on line 3 Notice: Undefined variable: year in /in/TiNlu on line 3 Notice: Undefined variable: monthname in /in/TiNlu on line 4 21st Notice: Undefined variable: monthname in /in/TiNlu on line 3 Notice: Undefined variable: year in /in/TiNlu on line 3 Notice: Undefined variable: monthname in /in/TiNlu on line 4 28th Notice: Undefined variable: monthname in /in/TiNlu on line 3 Notice: Undefined variable: year in /in/TiNlu on line 3
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: monthname in /in/TiNlu on line 2 Notice: Undefined variable: year in /in/TiNlu on line 2 Notice: Undefined variable: monthname in /in/TiNlu on line 3 Notice: Undefined variable: year in /in/TiNlu on line 3 Notice: Undefined variable: monthname in /in/TiNlu on line 4 1st Notice: Undefined variable: monthname in /in/TiNlu on line 3 Notice: Undefined variable: year in /in/TiNlu on line 3
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: monthname in /in/TiNlu on line 2 Notice: Undefined variable: year in /in/TiNlu on line 2 Notice: Undefined variable: monthname in /in/TiNlu on line 3 Notice: Undefined variable: year in /in/TiNlu on line 3 Notice: Undefined variable: monthname in /in/TiNlu on line 4 1st Notice: Undefined variable: monthname in /in/TiNlu on line 3 Notice: Undefined variable: year in /in/TiNlu on line 3