3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = new DateTimeZone('America/Chicago'); $start = 1293861600; $end = 1357020000; $transitions = $tz->getTransitions($start, $end); var_dump($transitions);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> array(5) { ["ts"]=> int(1293861600) ["time"]=> string(25) "2011-01-01T06:00:00+00:00" ["offset"]=> int(-21600) ["isdst"]=> bool(false) ["abbr"]=> string(3) "CST" } [1]=> array(5) { ["ts"]=> int(1300003200) ["time"]=> string(25) "2011-03-13T08:00:00+00:00" ["offset"]=> int(-18000) ["isdst"]=> bool(true) ["abbr"]=> string(3) "CDT" } [2]=> array(5) { ["ts"]=> int(1320562800) ["time"]=> string(25) "2011-11-06T07:00:00+00:00" ["offset"]=> int(-21600) ["isdst"]=> bool(false) ["abbr"]=> string(3) "CST" } [3]=> array(5) { ["ts"]=> int(1331452800) ["time"]=> string(25) "2012-03-11T08:00:00+00:00" ["offset"]=> int(-18000) ["isdst"]=> bool(true) ["abbr"]=> string(3) "CDT" } [4]=> array(5) { ["ts"]=> int(1352012400) ["time"]=> string(25) "2012-11-04T07:00:00+00:00" ["offset"]=> int(-21600) ["isdst"]=> bool(false) ["abbr"]=> string(3) "CST" } }

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.76 ms | 403 KiB | 8 Q