3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = date( "Y-m-d", strtotime("-1 weeks ago")); $date2 = date( "Y-m-d", strtotime("-1 weeks")); echo $date1 . ' - ' . $date2;

preferences:
51.05 ms | 402 KiB | 5 Q