3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d', strtotime('first day of current month', $lastWeek)); echo "\n"; echo date('Y-m-d', strtotime('last day of current month', $lastWeek));

preferences:
35.24 ms | 402 KiB | 5 Q