3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('America/New_York'); echo $script_tz = date_default_timezone_get(); $ny_time = "12:30 am"; echo gmdate('h:i a',strtotime($ny_time));
based on Mt69S
Output for 5.3.21 - 5.4.45, 5.5.33, 5.6.19, 5.6.28, 7.0.4, 7.0.20 - 7.2.0
America/New_York05:30 am
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.18, 5.6.20 - 5.6.21, 7.0.0 - 7.0.3, 7.0.5 - 7.0.6
America/New_York04:30 am