3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dateTime = new DateTime(); $timezone = new DateTimeZone('Europe/Amsterdam'); $dateTime->setTimezone($timezone); printf("%s\n", $dateTime->format('Y-m-d H:i:s'));
based on kTc93
Output for 5.6.0 - 7.3.0alpha1
2016-11-01 09:41:25