3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt1 = new DateTime('now', new DateTimeZone('Australia/Perth')); $dt2 = new DateTime('now', new DateTimeZone('Australia/Sydney')); $dt1->setTimezone(new DateTimeZone('UTC')); $dt2->setTimezone(new DateTimeZone('UTC')); var_dump($dt1); var_dump($dt2);
Output for git.master
object(DateTime)#1 (3) { ["date"]=> string(26) "2013-11-06 10:11:01.003820" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-11-06 10:11:01.003830" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for git.master_jit
object(DateTime)#1 (3) { ["date"]=> string(26) "2013-11-06 10:11:01.005777" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-11-06 10:11:01.005794" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for rfc.property-hooks
object(DateTime)#1 (3) { ["date"]=> string(26) "2013-11-06 10:11:01.004324" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-11-06 10:11:01.004332" ["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:
58.54 ms | 401 KiB | 8 Q