3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tzUK = new \DateTimeZone("Europe/London"); $tzUtc = new \DateTimeZone("UTC"); $dt = \DateTimeImmutable::createFromFormat("!Y-m-d H:i:s", "2020-10-25 00:05:00", $tzUtc); $dt = DateTime::createFromFormat('U', $dt->format('U')); print $dt->format(\DateTime::RFC3339 ." e") ."\n"; $dt->setTimeZone($tzUK); print $dt->format(\DateTime::RFC3339 ." e") ."\n"; $dt->setTime((int) $dt->format('H'), (int) $dt->format('i'), 0); print $dt->format(\DateTime::RFC3339 ." e") ."\n";
Output for git.master, git.master_jit, rfc.property-hooks
2020-10-25T00:05:00+00:00 +00:00 2020-10-25T01:05:00+01:00 Europe/London 2020-10-25T01:05:00+01:00 Europe/London

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:
117.97 ms | 405 KiB | 5 Q