3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d h:i:s <br>', 1); echo date('Y-m-d h:i:s <br>', '1'); echo date('Y-m-d h:i:s <br>', -1);
Output for 4.3.11 - 4.4.9, 5.0.4 - 7.1.0
1970-01-01 01:00:01 <bThu, 01 Jan 1970 01:00:01 +0100>1970-01-01 01:00:01 <bThu, 01 Jan 1970 01:00:01 +0100>1970-01-01 12:59:59 <bThu, 01 Jan 1970 00:59:59 +0100>
Output for 4.3.0 - 4.3.10, 5.0.0 - 5.0.3
1970-01-01 01:00:01 <bThu, 1 Jan 1970 01:00:01 +0100>1970-01-01 01:00:01 <bThu, 1 Jan 1970 01:00:01 +0100>1970-01-01 12:59:59 <bThu, 1 Jan 1970 00:59:59 +0100>