3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($Y = 2000; $Y <= 2013; $Y++) { echo date('l jS F (Y-m-d)', strtotime("first thursday january $Y")), "\n"; }
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Thursday 6th January (2000-01-06) Thursday 4th January (2001-01-04) Thursday 3rd January (2002-01-03) Thursday 2nd January (2003-01-02) Thursday 8th January (2004-01-08) Thursday 6th January (2005-01-06) Thursday 5th January (2006-01-05) Thursday 4th January (2007-01-04) Thursday 3rd January (2008-01-03) Thursday 8th January (2009-01-08) Thursday 7th January (2010-01-07) Thursday 6th January (2011-01-06) Thursday 5th January (2012-01-05) Thursday 3rd January (2013-01-03)
Output for 4.3.5 - 5.0.5
Tuesday 4th January (2000-01-04) Thursday 4th January (2001-01-04) Friday 4th January (2002-01-04) Saturday 4th January (2003-01-04) Sunday 4th January (2004-01-04) Tuesday 4th January (2005-01-04) Wednesday 4th January (2006-01-04) Thursday 4th January (2007-01-04) Friday 4th January (2008-01-04) Sunday 4th January (2009-01-04) Monday 4th January (2010-01-04) Tuesday 4th January (2011-01-04) Wednesday 4th January (2012-01-04) Friday 4th January (2013-01-04)
Output for 4.3.0 - 4.3.4
Saturday 23rd June (2018-06-23) Sunday 24th June (2018-06-24) Monday 25th June (2018-06-25) Tuesday 26th June (2018-06-26) Wednesday 27th June (2018-06-27) Thursday 28th June (2018-06-28) Friday 29th June (2018-06-29) Saturday 30th June (2018-06-30) Sunday 1st July (2018-07-01) Monday 2nd July (2018-07-02) Tuesday 3rd July (2018-07-03) Wednesday 4th July (2018-07-04) Thursday 5th July (2018-07-05) Friday 6th July (2018-07-06)