3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = new DateTimeZone('America/Denver'); $now = new DateTime('August 31', $tz); echo 'today ' . $now->format('M-d'); $now->modify('first day this month'); echo 'first ' .$now->format('M-d'); $now = new DateTime('August 31', $tz); $now->modify('last day this month'); echo 'last ' .$now->format('M-d'); $now->modify('first day this month'); echo 'first after last ' .$now->format('M-d');
Output for git.master, git.master_jit, rfc.property-hooks
today Aug-31first Sep-01last Aug-30first after last Aug-31

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:
48.98 ms | 401 KiB | 8 Q