3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $datetime = new DateTime(); var_dump($datetime->getOffset());
based on gTHXS
Output for 5.3.17 - 5.3.29, 5.4.7 - 5.5.30, 5.5.34 - 5.6.16, 5.6.20 - 5.6.28, 7.0.5 - 7.2.0
int(7200)
Output for 5.4.2 - 5.4.6, 5.5.31 - 5.5.33, 5.6.17 - 5.6.19, 7.0.0 - 7.0.4
int(3600)