3v4l.org

run code in 500+ PHP versions simultaneously
<?php $d = new DateTime("2022-05-31"); echo $d->format(DATE_ATOM) . PHP_EOL; $d = new DateTime("2022-05-31 -1month"); echo $d->format(DATE_ATOM ) . PHP_EOL; $d = new DateTime("2022-05-31 -2months"); echo $d->format(DATE_ATOM) . PHP_EOL;
Output for rfc.property-hooks, git.master, git.master_jit
2022-05-31T00:00:00+02:00 2022-05-01T00:00:00+02:00 2022-03-31T00:00:00+02: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:
76.12 ms | 1246 KiB | 4 Q