3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $oDateTimeZone = new DateTimeZone('europe/berlin'); $transitions = $oDateTimeZone->getTransitions(0, 1000000000); print_r($transitions);
Output for 5.3.0 - 7.1.0
Array ( [0] => Array ( [ts] => 0 [time] => 1970-01-01T00:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [1] => Array ( [ts] => 315529200 [time] => 1979-12-31T23:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [2] => Array ( [ts] => 323830800 [time] => 1980-04-06T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [3] => Array ( [ts] => 338950800 [time] => 1980-09-28T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [4] => Array ( [ts] => 354675600 [time] => 1981-03-29T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [5] => Array ( [ts] => 370400400 [time] => 1981-09-27T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [6] => Array ( [ts] => 386125200 [time] => 1982-03-28T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [7] => Array ( [ts] => 401850000 [time] => 1982-09-26T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [8] => Array ( [ts] => 417574800 [time] => 1983-03-27T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [9] => Array ( [ts] => 433299600 [time] => 1983-09-25T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [10] => Array ( [ts] => 449024400 [time] => 1984-03-25T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [11] => Array ( [ts] => 465354000 [time] => 1984-09-30T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [12] => Array ( [ts] => 481078800 [time] => 1985-03-31T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [13] => Array ( [ts] => 496803600 [time] => 1985-09-29T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [14] => Array ( [ts] => 512528400 [time] => 1986-03-30T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [15] => Array ( [ts] => 528253200 [time] => 1986-09-28T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [16] => Array ( [ts] => 543978000 [time] => 1987-03-29T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [17] => Array ( [ts] => 559702800 [time] => 1987-09-27T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [18] => Array ( [ts] => 575427600 [time] => 1988-03-27T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [19] => Array ( [ts] => 591152400 [time] => 1988-09-25T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [20] => Array ( [ts] => 606877200 [time] => 1989-03-26T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [21] => Array ( [ts] => 622602000 [time] => 1989-09-24T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [22] => Array ( [ts] => 638326800 [time] => 1990-03-25T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [23] => Array ( [ts] => 654656400 [time] => 1990-09-30T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [24] => Array ( [ts] => 670381200 [time] => 1991-03-31T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [25] => Array ( [ts] => 686106000 [time] => 1991-09-29T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [26] => Array ( [ts] => 701830800 [time] => 1992-03-29T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [27] => Array ( [ts] => 717555600 [time] => 1992-09-27T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [28] => Array ( [ts] => 733280400 [time] => 1993-03-28T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [29] => Array ( [ts] => 749005200 [time] => 1993-09-26T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [30] => Array ( [ts] => 764730000 [time] => 1994-03-27T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [31] => Array ( [ts] => 780454800 [time] => 1994-09-25T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [32] => Array ( [ts] => 796179600 [time] => 1995-03-26T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [33] => Array ( [ts] => 811904400 [time] => 1995-09-24T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [34] => Array ( [ts] => 828234000 [time] => 1996-03-31T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [35] => Array ( [ts] => 846378000 [time] => 1996-10-27T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [36] => Array ( [ts] => 859683600 [time] => 1997-03-30T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [37] => Array ( [ts] => 877827600 [time] => 1997-10-26T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [38] => Array ( [ts] => 891133200 [time] => 1998-03-29T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [39] => Array ( [ts] => 909277200 [time] => 1998-10-25T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [40] => Array ( [ts] => 922582800 [time] => 1999-03-28T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [41] => Array ( [ts] => 941331600 [time] => 1999-10-31T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [42] => Array ( [ts] => 954032400 [time] => 2000-03-26T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) [43] => Array ( [ts] => 972781200 [time] => 2000-10-29T01:00:00+0000 [offset] => 3600 [isdst] => [abbr] => CET ) [44] => Array ( [ts] => 985482000 [time] => 2001-03-25T01:00:00+0000 [offset] => 7200 [isdst] => 1 [abbr] => CEST ) )
Output for 5.2.0 - 5.2.17
Warning: DateTimeZone::getTransitions() expects exactly 0 parameters, 2 given in /in/bfMKt on line 3
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTimeZone' not found in /in/bfMKt on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetimezone in /in/bfMKt on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetimezone in /in/bfMKt on line 2