3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = \DateTime::createFromFormat('Y-m-d', '2018-10-31'); $dt2 = $dt; // 月初 echo $dt->modify('first day of 00:00:00')->modify('next month')->format('Y-m-d'); // 2018-11-01 echo $dt2->modify('first day of 00:00:00')->modify('last month')->format('Y-m-d'); // 2018-10-01
Output for git.master_jit, git.master, rfc.property-hooks
2018-11-012018-10-01

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
27.21 ms | 401 KiB | 8 Q