fork download
  1. <?php
  2. $holidays = [
  3. "01-01" => "New Years Day",
  4. "02-14" => "VALENTINE'S DAY, an observed day, but NOT A PUBLIC HOLIDAY",
  5. "03-08" => "WOMEN'S DAY",
  6. "12-25" => "Christmas Day",
  7. ];
  8.  
  9.  
  10. $date = new DateTime();
  11. for($index = 0; $index < 356; $index++)
  12. {
  13. $date->modify('+1 day');
  14. if(array_key_exists($date->format("m-d"), $holidays))
  15. echo "Happy {$holidays[$date->format("m-d")]} {$date->format("Y-m-d")}";
  16. else if($date->format("w") > 0 && $date->format("w") < 6)
  17. echo "Today is a work day {$date->format("Y-m-d")}";
  18. else
  19. echo "It's the weekend {$date->format("Y-m-d")}";
  20.  
  21. echo "\n";
  22. }
  23.  
  24.  
  25.  
  26.  
Success #stdin #stdout 0s 82624KB
stdin
Standard input is empty
stdout
It's the weekend 2019-02-09
It's the weekend 2019-02-10
Today is a work day 2019-02-11
Today is a work day 2019-02-12
Today is a work day 2019-02-13
Happy VALENTINE'S DAY, an observed day, but NOT A PUBLIC HOLIDAY 2019-02-14
Today is a work day 2019-02-15
It's the weekend 2019-02-16
It's the weekend 2019-02-17
Today is a work day 2019-02-18
Today is a work day 2019-02-19
Today is a work day 2019-02-20
Today is a work day 2019-02-21
Today is a work day 2019-02-22
It's the weekend 2019-02-23
It's the weekend 2019-02-24
Today is a work day 2019-02-25
Today is a work day 2019-02-26
Today is a work day 2019-02-27
Today is a work day 2019-02-28
Today is a work day 2019-03-01
It's the weekend 2019-03-02
It's the weekend 2019-03-03
Today is a work day 2019-03-04
Today is a work day 2019-03-05
Today is a work day 2019-03-06
Today is a work day 2019-03-07
Happy WOMEN'S DAY 2019-03-08
It's the weekend 2019-03-09
It's the weekend 2019-03-10
Today is a work day 2019-03-11
Today is a work day 2019-03-12
Today is a work day 2019-03-13
Today is a work day 2019-03-14
Today is a work day 2019-03-15
It's the weekend 2019-03-16
It's the weekend 2019-03-17
Today is a work day 2019-03-18
Today is a work day 2019-03-19
Today is a work day 2019-03-20
Today is a work day 2019-03-21
Today is a work day 2019-03-22
It's the weekend 2019-03-23
It's the weekend 2019-03-24
Today is a work day 2019-03-25
Today is a work day 2019-03-26
Today is a work day 2019-03-27
Today is a work day 2019-03-28
Today is a work day 2019-03-29
It's the weekend 2019-03-30
It's the weekend 2019-03-31
Today is a work day 2019-04-01
Today is a work day 2019-04-02
Today is a work day 2019-04-03
Today is a work day 2019-04-04
Today is a work day 2019-04-05
It's the weekend 2019-04-06
It's the weekend 2019-04-07
Today is a work day 2019-04-08
Today is a work day 2019-04-09
Today is a work day 2019-04-10
Today is a work day 2019-04-11
Today is a work day 2019-04-12
It's the weekend 2019-04-13
It's the weekend 2019-04-14
Today is a work day 2019-04-15
Today is a work day 2019-04-16
Today is a work day 2019-04-17
Today is a work day 2019-04-18
Today is a work day 2019-04-19
It's the weekend 2019-04-20
It's the weekend 2019-04-21
Today is a work day 2019-04-22
Today is a work day 2019-04-23
Today is a work day 2019-04-24
Today is a work day 2019-04-25
Today is a work day 2019-04-26
It's the weekend 2019-04-27
It's the weekend 2019-04-28
Today is a work day 2019-04-29
Today is a work day 2019-04-30
Today is a work day 2019-05-01
Today is a work day 2019-05-02
Today is a work day 2019-05-03
It's the weekend 2019-05-04
It's the weekend 2019-05-05
Today is a work day 2019-05-06
Today is a work day 2019-05-07
Today is a work day 2019-05-08
Today is a work day 2019-05-09
Today is a work day 2019-05-10
It's the weekend 2019-05-11
It's the weekend 2019-05-12
Today is a work day 2019-05-13
Today is a work day 2019-05-14
Today is a work day 2019-05-15
Today is a work day 2019-05-16
Today is a work day 2019-05-17
It's the weekend 2019-05-18
It's the weekend 2019-05-19
Today is a work day 2019-05-20
Today is a work day 2019-05-21
Today is a work day 2019-05-22
Today is a work day 2019-05-23
Today is a work day 2019-05-24
It's the weekend 2019-05-25
It's the weekend 2019-05-26
Today is a work day 2019-05-27
Today is a work day 2019-05-28
Today is a work day 2019-05-29
Today is a work day 2019-05-30
Today is a work day 2019-05-31
It's the weekend 2019-06-01
It's the weekend 2019-06-02
Today is a work day 2019-06-03
Today is a work day 2019-06-04
Today is a work day 2019-06-05
Today is a work day 2019-06-06
Today is a work day 2019-06-07
It's the weekend 2019-06-08
It's the weekend 2019-06-09
Today is a work day 2019-06-10
Today is a work day 2019-06-11
Today is a work day 2019-06-12
Today is a work day 2019-06-13
Today is a work day 2019-06-14
It's the weekend 2019-06-15
It's the weekend 2019-06-16
Today is a work day 2019-06-17
Today is a work day 2019-06-18
Today is a work day 2019-06-19
Today is a work day 2019-06-20
Today is a work day 2019-06-21
It's the weekend 2019-06-22
It's the weekend 2019-06-23
Today is a work day 2019-06-24
Today is a work day 2019-06-25
Today is a work day 2019-06-26
Today is a work day 2019-06-27
Today is a work day 2019-06-28
It's the weekend 2019-06-29
It's the weekend 2019-06-30
Today is a work day 2019-07-01
Today is a work day 2019-07-02
Today is a work day 2019-07-03
Today is a work day 2019-07-04
Today is a work day 2019-07-05
It's the weekend 2019-07-06
It's the weekend 2019-07-07
Today is a work day 2019-07-08
Today is a work day 2019-07-09
Today is a work day 2019-07-10
Today is a work day 2019-07-11
Today is a work day 2019-07-12
It's the weekend 2019-07-13
It's the weekend 2019-07-14
Today is a work day 2019-07-15
Today is a work day 2019-07-16
Today is a work day 2019-07-17
Today is a work day 2019-07-18
Today is a work day 2019-07-19
It's the weekend 2019-07-20
It's the weekend 2019-07-21
Today is a work day 2019-07-22
Today is a work day 2019-07-23
Today is a work day 2019-07-24
Today is a work day 2019-07-25
Today is a work day 2019-07-26
It's the weekend 2019-07-27
It's the weekend 2019-07-28
Today is a work day 2019-07-29
Today is a work day 2019-07-30
Today is a work day 2019-07-31
Today is a work day 2019-08-01
Today is a work day 2019-08-02
It's the weekend 2019-08-03
It's the weekend 2019-08-04
Today is a work day 2019-08-05
Today is a work day 2019-08-06
Today is a work day 2019-08-07
Today is a work day 2019-08-08
Today is a work day 2019-08-09
It's the weekend 2019-08-10
It's the weekend 2019-08-11
Today is a work day 2019-08-12
Today is a work day 2019-08-13
Today is a work day 2019-08-14
Today is a work day 2019-08-15
Today is a work day 2019-08-16
It's the weekend 2019-08-17
It's the weekend 2019-08-18
Today is a work day 2019-08-19
Today is a work day 2019-08-20
Today is a work day 2019-08-21
Today is a work day 2019-08-22
Today is a work day 2019-08-23
It's the weekend 2019-08-24
It's the weekend 2019-08-25
Today is a work day 2019-08-26
Today is a work day 2019-08-27
Today is a work day 2019-08-28
Today is a work day 2019-08-29
Today is a work day 2019-08-30
It's the weekend 2019-08-31
It's the weekend 2019-09-01
Today is a work day 2019-09-02
Today is a work day 2019-09-03
Today is a work day 2019-09-04
Today is a work day 2019-09-05
Today is a work day 2019-09-06
It's the weekend 2019-09-07
It's the weekend 2019-09-08
Today is a work day 2019-09-09
Today is a work day 2019-09-10
Today is a work day 2019-09-11
Today is a work day 2019-09-12
Today is a work day 2019-09-13
It's the weekend 2019-09-14
It's the weekend 2019-09-15
Today is a work day 2019-09-16
Today is a work day 2019-09-17
Today is a work day 2019-09-18
Today is a work day 2019-09-19
Today is a work day 2019-09-20
It's the weekend 2019-09-21
It's the weekend 2019-09-22
Today is a work day 2019-09-23
Today is a work day 2019-09-24
Today is a work day 2019-09-25
Today is a work day 2019-09-26
Today is a work day 2019-09-27
It's the weekend 2019-09-28
It's the weekend 2019-09-29
Today is a work day 2019-09-30
Today is a work day 2019-10-01
Today is a work day 2019-10-02
Today is a work day 2019-10-03
Today is a work day 2019-10-04
It's the weekend 2019-10-05
It's the weekend 2019-10-06
Today is a work day 2019-10-07
Today is a work day 2019-10-08
Today is a work day 2019-10-09
Today is a work day 2019-10-10
Today is a work day 2019-10-11
It's the weekend 2019-10-12
It's the weekend 2019-10-13
Today is a work day 2019-10-14
Today is a work day 2019-10-15
Today is a work day 2019-10-16
Today is a work day 2019-10-17
Today is a work day 2019-10-18
It's the weekend 2019-10-19
It's the weekend 2019-10-20
Today is a work day 2019-10-21
Today is a work day 2019-10-22
Today is a work day 2019-10-23
Today is a work day 2019-10-24
Today is a work day 2019-10-25
It's the weekend 2019-10-26
It's the weekend 2019-10-27
Today is a work day 2019-10-28
Today is a work day 2019-10-29
Today is a work day 2019-10-30
Today is a work day 2019-10-31
Today is a work day 2019-11-01
It's the weekend 2019-11-02
It's the weekend 2019-11-03
Today is a work day 2019-11-04
Today is a work day 2019-11-05
Today is a work day 2019-11-06
Today is a work day 2019-11-07
Today is a work day 2019-11-08
It's the weekend 2019-11-09
It's the weekend 2019-11-10
Today is a work day 2019-11-11
Today is a work day 2019-11-12
Today is a work day 2019-11-13
Today is a work day 2019-11-14
Today is a work day 2019-11-15
It's the weekend 2019-11-16
It's the weekend 2019-11-17
Today is a work day 2019-11-18
Today is a work day 2019-11-19
Today is a work day 2019-11-20
Today is a work day 2019-11-21
Today is a work day 2019-11-22
It's the weekend 2019-11-23
It's the weekend 2019-11-24
Today is a work day 2019-11-25
Today is a work day 2019-11-26
Today is a work day 2019-11-27
Today is a work day 2019-11-28
Today is a work day 2019-11-29
It's the weekend 2019-11-30
It's the weekend 2019-12-01
Today is a work day 2019-12-02
Today is a work day 2019-12-03
Today is a work day 2019-12-04
Today is a work day 2019-12-05
Today is a work day 2019-12-06
It's the weekend 2019-12-07
It's the weekend 2019-12-08
Today is a work day 2019-12-09
Today is a work day 2019-12-10
Today is a work day 2019-12-11
Today is a work day 2019-12-12
Today is a work day 2019-12-13
It's the weekend 2019-12-14
It's the weekend 2019-12-15
Today is a work day 2019-12-16
Today is a work day 2019-12-17
Today is a work day 2019-12-18
Today is a work day 2019-12-19
Today is a work day 2019-12-20
It's the weekend 2019-12-21
It's the weekend 2019-12-22
Today is a work day 2019-12-23
Today is a work day 2019-12-24
Happy Christmas Day 2019-12-25
Today is a work day 2019-12-26
Today is a work day 2019-12-27
It's the weekend 2019-12-28
It's the weekend 2019-12-29
Today is a work day 2019-12-30
Today is a work day 2019-12-31
Happy New Years Day 2020-01-01
Today is a work day 2020-01-02
Today is a work day 2020-01-03
It's the weekend 2020-01-04
It's the weekend 2020-01-05
Today is a work day 2020-01-06
Today is a work day 2020-01-07
Today is a work day 2020-01-08
Today is a work day 2020-01-09
Today is a work day 2020-01-10
It's the weekend 2020-01-11
It's the weekend 2020-01-12
Today is a work day 2020-01-13
Today is a work day 2020-01-14
Today is a work day 2020-01-15
Today is a work day 2020-01-16
Today is a work day 2020-01-17
It's the weekend 2020-01-18
It's the weekend 2020-01-19
Today is a work day 2020-01-20
Today is a work day 2020-01-21
Today is a work day 2020-01-22
Today is a work day 2020-01-23
Today is a work day 2020-01-24
It's the weekend 2020-01-25
It's the weekend 2020-01-26
Today is a work day 2020-01-27
Today is a work day 2020-01-28
Today is a work day 2020-01-29
Today is a work day 2020-01-30