3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date("Y-m-d H:i:s")." "; echo date("Y-m-d H:i:s",strtotime("12 hours ago"));
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2013-09-11 13:11:37 2013-09-11 01:11:37
Output for 5.0.0 - 5.0.2
2013-09-11 13:11:37 2013-09-10 12:00:00