3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstMondayOfWeek = (clone $time = date_create_from_format('Y-m-d H:i:s', '2022-06-4 12:00:00')) ->modify($modify = 'first monday of this week'); echo $time->format('d M Y'), " --- ( $modify ) --> ", $firstMondayOfWeek->format('d M Y'), "\n";
Output for git.master, git.master_jit, rfc.property-hooks
04 Jun 2022 --- ( first monday of this week ) --> 30 May 2022

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:
118.81 ms | 405 KiB | 5 Q