3v4l.org

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

preferences:
47.04 ms | 402 KiB | 5 Q