3v4l.org

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

preferences:
49.77 ms | 402 KiB | 5 Q