3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 5; $thisWeekString = date('Y-m-d', strtotime('-'.$key.' days')) . '-'; print $thisWeekString; ?>

preferences:
44.32 ms | 402 KiB | 5 Q