3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('America/NewYork'); $ny_time = "12:30 am"; echo gmdate('h:i a',strtotime($ny_time));
Output for 5.5.0 - 5.6.30, 7.0.0 - 7.2.0
Notice: date_default_timezone_set(): Timezone ID 'America/NewYork' is invalid in /in/qkIrf on line 3 11:30 pm
Output for hhvm-3.10.1 - 3.17.3
Notice: Timezone ID 'America/NewYork' is invalid in /in/qkIrf on line 3 11:30 pm