3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $timezone = new DateTimeZone("Europe/London"); $transitions = $timezone->getTransitions(); print_r(array_slice($transitions, 0, 3));
Output for 5.5.25 - 5.5.38, 5.6.9 - 5.6.28, 7.0.0 - 7.1.0
Array ( [0] => Array ( [ts] => -9223372036854775808 [time] => -292277022657-01-27T08:29:52+0000 [offset] => -75 [isdst] => [abbr] => LMT ) [1] => Array ( [ts] => -2147483648 [time] => 1901-12-13T20:45:52+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [2] => Array ( [ts] => -1691964000 [time] => 1916-05-21T02:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) )
Output for hhvm-3.12.0
Array ( [0] => Array ( [ts] => -2147483648 [time] => 1901-12-13T20:45:52+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [1] => Array ( [ts] => -1691964000 [time] => 1916-05-21T02:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [2] => Array ( [ts] => -1680472800 [time] => 1916-10-01T02:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) )
Output for hhvm-3.10.0
Array ( [0] => Array ( [ts] => -2147483648 [time] => 1901-12-13T21:05:24+0019 [offset] => 0 [isdst] => [abbr] => GMT ) [1] => Array ( [ts] => -1691964000 [time] => 1916-05-21T03:19:32+0119 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [2] => Array ( [ts] => -1680472800 [time] => 1916-10-01T02:19:32+0019 [offset] => 0 [isdst] => [abbr] => GMT ) )
Output for 5.3.0 - 5.5.24, 5.6.0 - 5.6.8
Array ( [0] => Array ( [ts] => -9223372036854775808 [time] => -292277022657-01-27T08:29:52+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [1] => Array ( [ts] => -1691964000 [time] => 1916-05-21T02:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [2] => Array ( [ts] => -1680472800 [time] => 1916-10-01T02:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) )
Output for 5.2.0 - 5.2.17
Array ( [0] => Array ( [ts] => -1691964000 [time] => 1916-05-21T02:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) [1] => Array ( [ts] => -1680472800 [time] => 1916-10-01T02:00:00+0000 [offset] => 0 [isdst] => [abbr] => GMT ) [2] => Array ( [ts] => -1664143200 [time] => 1917-04-08T02:00:00+0000 [offset] => 3600 [isdst] => 1 [abbr] => BST ) )
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTimeZone' not found in /in/oUWiK on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetimezone in /in/oUWiK on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetimezone in /in/oUWiK on line 4