3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d h:i:s', 1); echo date('Y-m-d h:i:s', '1'); echo date('Y-m-d h:i:s', -1);
Output for 4.3.0 - 7.2.0
1970-01-01 01:00:011970-01-01 01:00:011970-01-01 12:59:59