3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstDayNextMonth = date('Y-m-01', strtotime('+1 months', time())); echo $firstDayNextMonth;

preferences:
32.49 ms | 402 KiB | 5 Q