3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $starttime='1899-12-30T16:30:00'; echo $starttime . "\n\r"; echo date('H:i:s', strtotime($starttime)) . "\n\r"; echo "\n\r"; date_default_timezone_set('America/New_York'); $starttime='1899-12-30T16:30:00'; echo $starttime . "\n\r"; echo date('H:i:s', strtotime($starttime)) . "\n\r";
Output for 5.2.6 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
1899-12-30T16:30:00 16:30:00 1899-12-30T16:30:00 16:30:00
Output for 5.1.0 - 5.2.5
1899-12-30T16:30:00 01:00:00 1899-12-30T16:30:00 19:00:00
Output for 5.0.0 - 5.0.5
1899-12-30T16:30:00 16:30:00 Fatal error: Call to undefined function date_default_timezone_set() in /in/neMXn on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
1899-12-30T16:30:00 23:49:32 Fatal error: Call to undefined function: date_default_timezone_set() in /in/neMXn on line 8
Process exited with code 255.
Output for 4.3.5 - 4.4.4
1899-12-30T16:30:00 23:49:32 Fatal error: Call to undefined function: date_default_timezone_set() in /in/neMXn on line 8
Process exited with code 255.
Output for 4.3.2 - 4.3.4
1899-12-30T16:30:00 09:49:32 Fatal error: Call to undefined function: date_default_timezone_set() in /in/neMXn on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
1899-12-30T16:30:00 09:49:32 Fatal error: Call to undefined function: date_default_timezone_set() in /in/neMXn on line 8