3v4l.org

run code in 300+ PHP versions simultaneously
<?php use DateTime; date_default_timezone_set('EET'); $date = new DateTime(); var_dump($date); $date->setTimezone(new DateTimeZone('EET')); var_dump($date);
Output for git.master
Warning: The use statement with non-compound name 'DateTime' has no effect in /in/bk7tO on line 2 object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-29 14:15:00.003695" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "EET" } object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-29 13:15:00.003695" ["timezone_type"]=> int(2) ["timezone"]=> string(3) "EET" }
Output for git.master_jit
Warning: The use statement with non-compound name 'DateTime' has no effect in /in/bk7tO on line 2 object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-29 14:15:00.003949" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "EET" } object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-29 13:15:00.003949" ["timezone_type"]=> int(2) ["timezone"]=> string(3) "EET" }
Output for rfc.property-hooks
Warning: The use statement with non-compound name 'DateTime' has no effect in /in/bk7tO on line 2 object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-29 14:15:00.003611" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "EET" } object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-29 13:15:00.003611" ["timezone_type"]=> int(2) ["timezone"]=> string(3) "EET" }

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.41 ms | 401 KiB | 8 Q