3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $year = 2013; echo date("Y-m-d", strtotime("$year-01-02 last Thursday"));
Output for 5.1.0 - 7.1.0
2012-12-27
Output for 4.3.0 - 5.0.5
2013-01-02