3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = strtotime("first day of ".$monthname." ".$year); while($time <= strtotime("last day of ".$monthname." ".$year)) { if((date('w',$time) + 1) % 7 > 1) { //It's a weekday. 0 = Saturday, 1 = Sunday. echo date('jS',$time)." ".$monthname; } $time += (24*60*60); //Advance One Day } ?>
Output for 5.3.0 - 7.1.7
Notice: Undefined variable: monthname in /in/vHLhp on line 2 Notice: Undefined variable: year in /in/vHLhp on line 2 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 1st Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 2nd Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 3rd Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 4th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 7th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 8th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 9th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 10th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 11th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 14th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 15th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 16th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 17th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 18th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 21st Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 22nd Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 23rd Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 24th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 25th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 28th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 29th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 30th Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: monthname in /in/vHLhp on line 2 Notice: Undefined variable: year in /in/vHLhp on line 2 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 1st Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: monthname in /in/vHLhp on line 2 Notice: Undefined variable: year in /in/vHLhp on line 2 Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3 Notice: Undefined variable: monthname in /in/vHLhp on line 5 1st Notice: Undefined variable: monthname in /in/vHLhp on line 3 Notice: Undefined variable: year in /in/vHLhp on line 3