3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt1 = new DateTime("2016-01-01 20:00:00+00:00"); $dt2 = new DateTime("2016-01-01 20:00:00+00:00"); $tz_ok= new DateTimeZone('Europe/Paris'); $tz_bad = new DateTimeZone('+01:00'); for ($i = 0; $i < 5; $i++) { $dt1->setTimezone($tz_ok); $dt2->setTimezone($tz_bad); print($dt1->format(DATE_RFC822) . " -- " .$dt2->format(DATE_RFC822) . "\n"); } $dt2->setTimezone($tz_ok); print($dt2->format(DATE_RFC822) . "\n");
Output for git.master, git.master_jit, rfc.property-hooks
Fri, 01 Jan 16 21:00:00 +0100 -- Fri, 01 Jan 16 21:00:00 +0100 Fri, 01 Jan 16 21:00:00 +0100 -- Fri, 01 Jan 16 21:00:00 +0100 Fri, 01 Jan 16 21:00:00 +0100 -- Fri, 01 Jan 16 21:00:00 +0100 Fri, 01 Jan 16 21:00:00 +0100 -- Fri, 01 Jan 16 21:00:00 +0100 Fri, 01 Jan 16 21:00:00 +0100 -- Fri, 01 Jan 16 21:00:00 +0100 Fri, 01 Jan 16 21:00:00 +0100

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:
68.35 ms | 402 KiB | 8 Q