3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz1 = new DateTime('now', new DateTimeZone('UTC')); $tz2 = new DateTime('now', new DateTimeZone('Europe/London')); $tz1->setTimeZone(new DateTimeZone('UTC')); $tz2->setTimeZone(new DateTimeZone('UTC')); var_dump($tz1); var_dump($tz2);
Output for git.master
object(DateTime)#1 (3) { ["date"]=> string(26) "2013-10-29 19:33:14.003830" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-10-29 19:33:14.003840" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for git.master_jit
object(DateTime)#1 (3) { ["date"]=> string(26) "2013-10-29 19:33:14.003768" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-10-29 19:33:14.003778" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for rfc.property-hooks
object(DateTime)#1 (3) { ["date"]=> string(26) "2013-10-29 19:33:14.004933" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-10-29 19:33:14.004947" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }

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:
52.53 ms | 401 KiB | 8 Q