3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $timezone = new DateTimeZone("Europe/London"); print_r( $timezone->getTransitions(time()));
based on TSLSS
Output for 5.3.0 - 7.2.0
Array ( [0] => Array ( [ts] => 1430460265 [time] => 2015-05-01T06:04:25+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [1] => Array ( [ts] => 1445734800 [time] => 2015-10-25T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [2] => Array ( [ts] => 1459040400 [time] => 2016-03-27T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [3] => Array ( [ts] => 1477789200 [time] => 2016-10-30T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [4] => Array ( [ts] => 1490490000 [time] => 2017-03-26T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [5] => Array ( [ts] => 1509238800 [time] => 2017-10-29T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [6] => Array ( [ts] => 1521939600 [time] => 2018-03-25T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [7] => Array ( [ts] => 1540688400 [time] => 2018-10-28T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [8] => Array ( [ts] => 1553994000 [time] => 2019-03-31T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [9] => Array ( [ts] => 1572138000 [time] => 2019-10-27T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [10] => Array ( [ts] => 1585443600 [time] => 2020-03-29T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [11] => Array ( [ts] => 1603587600 [time] => 2020-10-25T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [12] => Array ( [ts] => 1616893200 [time] => 2021-03-28T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [13] => Array ( [ts] => 1635642000 [time] => 2021-10-31T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [14] => Array ( [ts] => 1648342800 [time] => 2022-03-27T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [15] => Array ( [ts] => 1667091600 [time] => 2022-10-30T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [16] => Array ( [ts] => 1679792400 [time] => 2023-03-26T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [17] => Array ( [ts] => 1698541200 [time] => 2023-10-29T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [18] => Array ( [ts] => 1711846800 [time] => 2024-03-31T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [19] => Array ( [ts] => 1729990800 [time] => 2024-10-27T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [20] => Array ( [ts] => 1743296400 [time] => 2025-03-30T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [21] => Array ( [ts] => 1761440400 [time] => 2025-10-26T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [22] => Array ( [ts] => 1774746000 [time] => 2026-03-29T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [23] => Array ( [ts] => 1792890000 [time] => 2026-10-25T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [24] => Array ( [ts] => 1806195600 [time] => 2027-03-28T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [25] => Array ( [ts] => 1824944400 [time] => 2027-10-31T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [26] => Array ( [ts] => 1837645200 [time] => 2028-03-26T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [27] => Array ( [ts] => 1856394000 [time] => 2028-10-29T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [28] => Array ( [ts] => 1869094800 [time] => 2029-03-25T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [29] => Array ( [ts] => 1887843600 [time] => 2029-10-28T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [30] => Array ( [ts] => 1901149200 [time] => 2030-03-31T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [31] => Array ( [ts] => 1919293200 [time] => 2030-10-27T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [32] => Array ( [ts] => 1932598800 [time] => 2031-03-30T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [33] => Array ( [ts] => 1950742800 [time] => 2031-10-26T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [34] => Array ( [ts] => 1964048400 [time] => 2032-03-28T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [35] => Array ( [ts] => 1982797200 [time] => 2032-10-31T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [36] => Array ( [ts] => 1995498000 [time] => 2033-03-27T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [37] => Array ( [ts] => 2014246800 [time] => 2033-10-30T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [38] => Array ( [ts] => 2026947600 [time] => 2034-03-26T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [39] => Array ( [ts] => 2045696400 [time] => 2034-10-29T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [40] => Array ( [ts] => 2058397200 [time] => 2035-03-25T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [41] => Array ( [ts] => 2077146000 [time] => 2035-10-28T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [42] => Array ( [ts] => 2090451600 [time] => 2036-03-30T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [43] => Array ( [ts] => 2108595600 [time] => 2036-10-26T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [44] => Array ( [ts] => 2121901200 [time] => 2037-03-29T01:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [45] => Array ( [ts] => 2140045200 [time] => 2037-10-25T01:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) )
Output for 5.2.0 - 5.2.17
Warning: DateTimeZone::getTransitions() expects exactly 0 parameters, 1 given in /in/JJ6Vc on line 4
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTimeZone' not found in /in/JJ6Vc on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetimezone in /in/JJ6Vc on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetimezone in /in/JJ6Vc on line 3