3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTimeImmutable(); $monday = $date->modify('monday this week'); $sunday = $date->modify('sunday this week'); var_dump($monday->format(DateTime::ATOM), $sunday->format(DateTime::ATOM));
Output for git.master_jit, git.master, rfc.property-hooks
string(25) "2023-11-27T00:00:00+01:00" string(25) "2023-12-03T00:00:00+01:00"

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