3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
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 hhvm-3.10.0 - 3.12.0
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 7th 8th 9th 10th 11th 14th 15th 16th 17th 18th 21st 22nd 23rd 24th 25th 28th 29th 30th
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