3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $starttime='1999-12-30T16:30:00'; echo $starttime . "\n\r"; echo 'start: ' . date('H:i:s', strtotime($starttime)) . "\n\r"; echo "\n\r"; $end = '1999-12-30T16:45:00'; echo $end . "\n\r"; echo 'end: ' . date('H:i:s',strtotime($end)); /* 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.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1999-12-30T16:30:00 start: 16:30:00 1999-12-30T16:45:00 end: 16:45:00
Output for 4.3.5 - 4.4.9
1999-12-30T16:30:00 start: 00:30:00 1999-12-30T16:45:00 end: 00:45:00
Output for 4.3.0 - 4.3.4
1999-12-30T16:30:00 start: 10:30:00 1999-12-30T16:45:00 end: 10:45:00