3v4l.org

run code in 300+ PHP versions simultaneously
<?php $theTime = time(); // specific date/time we're checking, in epoch seconds. $tz = new DateTimeZone('Europe/London'); $transition = $tz->getTransitions($theTime, $theTime); var_dump($transition); ?>
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0
array(1) { [0]=> array(5) { ["ts"]=> int(1444029658) ["time"]=> string(24) "2015-10-05T07:20:58+0000" ["offset"]=> int(3600) ["isdst"]=> bool(true) ["abbr"]=> string(3) "BST" } }

preferences:
106.04 ms | 403 KiB | 128 Q