3v4l.org

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

preferences:
35.15 ms | 402 KiB | 5 Q