3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = date_create_from_format( 'Y-m-d H:i', '2021-03-28 08:45', new DateTimeZone("Europe/Madrid") ); $startMinusDays = (clone $startDate)->sub(new DateInterval('P3D')); $startMinusHours = (clone $startDate)->sub(new DateInterval('PT72H')); echo "Date: : ".$startDate->format('Y-m-d H:i:s'); echo "\n"; echo "Date - 3 Days : ".$startMinusDays->format('Y-m-d H:i:s'); echo "\n"; echo "Date - 72 Hours: ".$startMinusHours->format('Y-m-d H:i:s');
Output for git.master, git.master_jit, rfc.property-hooks
Date: : 2021-03-28 08:45:00 Date - 3 Days : 2021-03-25 08:45:00 Date - 72 Hours: 2021-03-25 07:45: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:
158.16 ms | 405 KiB | 5 Q