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 phpversion().': '.$date1 . ' - ' . $date2;

preferences:
39.44 ms | 402 KiB | 5 Q