3v4l.org

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

preferences:
41.71 ms | 402 KiB | 5 Q