3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newDate = date("d-m-Y", strtotime("01-02-2014")); $day = date('l', strtotime($newDate)); echo $newDate;echo "-----";echo $day;exit;

preferences:
25.1 ms | 405 KiB | 6 Q