3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstDate = DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '2021-03-03 15:45:49', new DateTimeZone('Europe/Amsterdam')); $secondDate = DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '2021-03-03 16:45:49', new DateTimeZone('Europe/Moscow')); $secondsInHour = 3600; echo $firstDate->format('Y-m-d H:i:s. \I\s \D\S\T\: I.') . PHP_EOL; echo '+' . $firstDate->getTimezone()->getOffset($firstDate) / $secondsInHour . PHP_EOL; echo $secondDate->format('Y-m-d H:i:s. \I\s \D\S\T\: I.') . PHP_EOL; echo '+' . $secondDate->getTimezone()->getOffset($secondDate) / $secondsInHour . PHP_EOL;
Output for git.master_jit, git.master, rfc.property-hooks
2021-03-03 15:45:49. Is DST: 0. +1 2021-03-03 16:45:49. Is DST: 0. +3

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