3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1=date_create('2019-12-21T22:01:00+01:00'); $date2=date_create('2019-12-21T22:01:00+01:00'); $date3=date_create('2019-12-21T22:01:00+01:00'); $tz1=new DateTimeZone("Europe/Berlin"); $tz2=new DateTimeZone("UTC"); $tz3=new DateTimeZone("GMT"); echo "Current Set Times:","\n"; echo "Date 1: ", $date1->format(DateTime::ATOM), "\n"; echo "Date 2: ", $date2->format(DateTime::ATOM), "\n"; echo "Date 3: ", $date3->format(DateTime::ATOM), "\n"; $date1->setTimezone($tz1); $date2->setTimezone($tz2); $date3->setTimezone($tz3); echo "Times with new Time Zone Set", "\n"; echo "Date 1: ", $date1->format(DateTime::ATOM), "\n"; echo "Date 2: ", $date2->format(DateTime::ATOM), "\n"; echo "Date 3: ", $date3->format(DateTime::ATOM), "\n";
Output for git.master, git.master_jit, rfc.property-hooks
Current Set Times: Date 1: 2019-12-21T22:01:00+01:00 Date 2: 2019-12-21T22:01:00+01:00 Date 3: 2019-12-21T22:01:00+01:00 Times with new Time Zone Set Date 1: 2019-12-21T22:01:00+01:00 Date 2: 2019-12-21T21:01:00+00:00 Date 3: 2019-12-21T21:01:00+00: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:
159.56 ms | 406 KiB | 5 Q