3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tz = new DateTimeZone("Pacific/Chatham"); $utcNow = new DateTimeImmutable("now", new DateTimeZone("UTC")); var_dump($tz->getOffset($utcNow)/3600);
based on 351Rd