3v4l.org

run code in 300+ PHP versions simultaneously
<?php $objDateTime = new \DateTime("26 October 2014 00:15:00 +0000"); $objDateTime->setTimeZone(new \DateTimeZone('UTC')); var_dump($objDateTime->format("d F Y H:i:s O")); $objDateTime->setTimeZone(new \DateTimeZone('Europe/London')); var_dump($objDateTime->format("d F Y H:i:s O")); var_dump($objDateTime->getTimeStamp()); var_dump($objDateTime->format("d F Y H:i:s O"));
Output for git.master, git.master_jit, rfc.property-hooks
string(30) "26 October 2014 00:15:00 +0000" string(30) "26 October 2014 01:15:00 +0100" int(1414282500) string(30) "26 October 2014 01:15: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:
47.09 ms | 401 KiB | 8 Q