3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $oDateTimeZone = new DateTimeZone('europe/berlin'); $transitions = $oDateTimeZone->getTransitions(100000000, 100000000 + 3600); print_r($transitions);
Output for 5.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [ts] => 100000000 [time] => 1973-03-03T09:46:40+0000 [offset] => 3600 [isdst] => [abbr] => CET ) )
Output for hhvm-3.10.0
Array ( [0] => Array ( [ts] => 100000000 [time] => 1973-03-03T10:46:40+0100 [offset] => 3600 [isdst] => [abbr] => CET ) )
Output for 5.2.0 - 5.2.17
Warning: DateTimeZone::getTransitions() expects exactly 0 parameters, 2 given in /in/V2jgV on line 3
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTimeZone' not found in /in/V2jgV 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/V2jgV 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/V2jgV on line 2