- phpversion: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$date1 = date( "Y-m-d", strtotime("-1 week ago"));
$date2 = date( "Y-m-d", strtotime("-1 week"));
echo phpversion().': '.$date1 . ' - ' . $date2;