3v4l.org

run code in 150+ 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'); } $datetime1 = new Datetime_Now(); echo $datetime1;
based on f6nZe
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'Datetime_Now' not found in /in/J0jac:11 Stack trace: #0 {main} thrown in /in/J0jac on line 11
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Class undefined: Datetime_Now in /in/J0jac on line 11
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.6.28
Fatal error: Class 'Datetime_Now' not found in /in/J0jac on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime_now in /in/J0jac on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime_now in /in/J0jac on line 11