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')); var_dump($dt1); var_dump($dt2);
Output for git.master
object(DateTime)#1 (3) { ["date"]=> string(26) "2013-11-06 18:09:23.004499" ["timezone_type"]=> int(3) ["timezone"]=> string(15) "Australia/Perth" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-11-06 21:09:23.004513" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" }
Output for git.master_jit
object(DateTime)#1 (3) { ["date"]=> string(26) "2013-11-06 18:09:23.003769" ["timezone_type"]=> int(3) ["timezone"]=> string(15) "Australia/Perth" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-11-06 21:09:23.003786" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" }
Output for rfc.property-hooks
object(DateTime)#1 (3) { ["date"]=> string(26) "2013-11-06 18:09:23.003740" ["timezone_type"]=> int(3) ["timezone"]=> string(15) "Australia/Perth" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-11-06 21:09:23.003747" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Australia/Sydney" }

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