3v4l.org

run code in 300+ PHP versions simultaneously
<?php function format($timezone) { $d = new \DateTime('now', new \DateTimeZone($timezone)); return $d->format('Y-m-d H:i:s.u ' . ($d->getTimeZone()->getLocation() ? 'e (P)' : 'P')); } echo format('Europe/Paris') . PHP_EOL; echo format('UTC') . PHP_EOL; echo format('+02:00') . PHP_EOL; echo format('GMT+2') . PHP_EOL;
Output for git.master
2017-05-02 18:21:05.003841 Europe/Paris (+02:00) 2017-05-02 16:21:05.003874 UTC (+00:00) 2017-05-02 18:21:05.003878 +02:00 2017-05-02 18:21:05.003880 +02:00
Output for git.master_jit
2017-05-02 18:21:05.003829 Europe/Paris (+02:00) 2017-05-02 16:21:05.003869 UTC (+00:00) 2017-05-02 18:21:05.003874 +02:00 2017-05-02 18:21:05.003877 +02:00
Output for rfc.property-hooks
2017-05-02 18:21:05.003575 Europe/Paris (+02:00) 2017-05-02 16:21:05.003592 UTC (+00:00) 2017-05-02 18:21:05.003596 +02:00 2017-05-02 18:21:05.003598 +02: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:
64.86 ms | 401 KiB | 8 Q