3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function get_Datetime_Now() { $tz_object = new DateTimeZone('Brazil/East'); //date_default_timezone_set('Brazil/East'); $datetime = new DateTime(); $datetime->setTimezone($tz_object); return $datetime->format('Y\-m\-d\ h:i:s'); echo $datetime; }
based on u0G4f
Output for 4.3.0 - 7.2.0