3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$date = new DateTime('1409781600'); //$date->setTimezone(new DateTimeZone('Europe/Minsk')); //echo $date->format('Y-m-d H:i:s'); echo date('Y-m-d H:i:s', 1409781600);
based on AJJbe
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
2014-09-04 00:00:00