3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lastmonday = strtotime('last monday of this month'); echo date('Y-m-d',$lastmonday); echo "<br/>"; $firstday = strtotime('first day of this month'); echo date('Y-m-d',$firstday);

preferences:
46.54 ms | 402 KiB | 5 Q