3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(jddayofweek(1234567, 1)); // "Saturday" print_r(jddayofweek(1234567, CAL_DOW_LONG)); // "Sat" (WRONG) print_r(CAL_DOW_LONG); // 2 print_r(jddayofweek(1234567, 2)); // "Sat" print_r(CAL_DOW_SHORT); // 1 print_r(jddayofweek(1234567, CAL_DOW_SHORT)); // "Saturday" (WRONG)
Output for 5.5.21 - 5.5.38, 5.6.5 - 7.1.0
SaturdaySaturday1Sat2Sat
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.5.20, 5.6.0 - 5.6.4
SaturdaySat2Sat1Saturday
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/OXRAC on line 8
Process exited with code 255.