3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $newDate = date("d-m-Y", strtotime("01-02-04")); $day = date('l', strtotime($newDate)); echo $newDate;echo "-----";echo $day;exit;
Output for 5.1.3 - 7.1.0
04-02-2001-----Sunday
Output for 5.1.0 - 5.1.2
04-02-2001-----Thursday
Output for 4.3.0 - 5.0.5
04-02-2001-----Friday