3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $today = unixtojd(mktime(0, 0, 0, 8, 16, 2003)); echo $today . '<br>'; print_r(cal_from_jd($today, CAL_GREGORIAN));
Output for 5.6.28, 7.0.14 - 7.1.0
2452868<br>Array ( [date] => 8/16/2003 [month] => 8 [day] => 16 [year] => 2003 [dow] => 6 [abbrevdayname] => Sat [dayname] => Saturday [abbrevmonth] => Aug [monthname] => August )
Output for 4.3.0 - 5.6.22, 7.0.0 - 7.0.7
2456401<br>Array ( [date] => 4/18/2013 [month] => 4 [day] => 18 [year] => 2013 [dow] => 4 [abbrevdayname] => Thu [dayname] => Thursday [abbrevmonth] => Apr [monthname] => April )