3v4l.org

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

preferences:
46.05 ms | 402 KiB | 5 Q