3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "Result for Saturday, January 1, 2000:"; $d = cal_to_jd(CAL_GREGORIAN, 1, 1, 2000); print_r(cal_from_jd($d, CAL_GREGORIAN)); echo "\n\n"; echo "Result for Sunday, January 2, 2000:"; $d = cal_to_jd(CAL_GREGORIAN, 1, 2, 2000); print_r(cal_from_jd($d, CAL_GREGORIAN));
based on 1ctbk
Output for 4.3.0 - 7.1.0
Result for Saturday, January 1, 2000:Array ( [date] => 1/1/2000 [month] => 1 [day] => 1 [year] => 2000 [dow] => 6 [abbrevdayname] => Sat [dayname] => Saturday [abbrevmonth] => Jan [monthname] => January ) Result for Sunday, January 2, 2000:Array ( [date] => 1/2/2000 [month] => 1 [day] => 2 [year] => 2000 [dow] => 0 [abbrevdayname] => Sun [dayname] => Sunday [abbrevmonth] => Jan [monthname] => January )