3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = new DatetimeImmutable('2018-10-28 02:30:00+02:00'); $f = $f->setTimezone(new DateTimezone('Europe/Amsterdam')); echo $f->format('d-m-Y H:i:s (e P)'); // 28-10-2018 02:30:00 (Europe/Amsterdam +02:00) echo "\n"; $b = $f->add(new DateInterval('PT1H')); echo $b->format('d-m-Y H:i:s (e P)'); // 28-10-2018 02:30:00 (Europe/Amsterdam +01:00)
Output for git.master, git.master_jit, rfc.property-hooks
28-10-2018 02:30:00 (Europe/Amsterdam +02:00) 28-10-2018 02:30:00 (Europe/Amsterdam +01: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:
28.78 ms | 405 KiB | 5 Q