3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $starttime='1899-12-30T16:30:00'; echo date('H:i:s', strtotime($starttime)); echo '<br />'; date_default_timezone_set('USA/New York'); $starttime='1899-12-30T16:30:00'; echo date('H:i:s', strtotime($starttime));
Output for 5.2.6 - 7.1.0
16:30:00<br /> Notice: date_default_timezone_set(): Timezone ID 'USA/New York' is invalid in /in/SCVJC on line 7 16:30:00
Output for 5.1.2 - 5.2.5
01:00:00<br /> Notice: date_default_timezone_set(): Timezone ID 'USA/New York' is invalid in /in/SCVJC on line 7 01:00:00
Output for 5.1.0 - 5.1.1
01:00:00<br /> Notice: strtotime(): Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone in /in/SCVJC on line 9 Notice: date(): Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone in /in/SCVJC on line 9 00:00:00
Output for 5.0.0 - 5.0.5
16:30:00<br /> Fatal error: Call to undefined function date_default_timezone_set() in /in/SCVJC on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
23:49:32<br /> Fatal error: Call to undefined function: date_default_timezone_set() in /in/SCVJC on line 7
Process exited with code 255.
Output for 4.3.5 - 4.4.4
23:49:32<br /> Fatal error: Call to undefined function: date_default_timezone_set() in /in/SCVJC on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
09:49:32<br /> Fatal error: Call to undefined function: date_default_timezone_set() in /in/SCVJC on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
09:49:32<br /> Fatal error: Call to undefined function: date_default_timezone_set() in /in/SCVJC on line 7