3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set('date.timezone', 'Australia/Melbourne'); print_r(new DateTime('@1234'));
Output for 5.4.34 - 7.1.0
DateTime Object ( [date] => 1970-01-01 00:20:34.000000 [timezone_type] => 1 [timezone] => +00:00 )
Output for 5.4.30 - 5.4.32
Warning: ini_set() has been disabled for security reasons in /in/Fgolm on line 3 DateTime Object ( [date] => 1970-01-01 00:20:34.000000 [timezone_type] => 1 [timezone] => +00:00 )
Output for 5.3.0 - 5.4.29
Warning: ini_set() has been disabled for security reasons in /in/Fgolm on line 3 DateTime Object ( [date] => 1970-01-01 00:20:34 [timezone_type] => 1 [timezone] => +00:00 )
Output for 5.2.0 - 5.2.17
Warning: ini_set() has been disabled for security reasons in /in/Fgolm on line 3 DateTime Object ( )
Output for 5.0.0 - 5.1.6
Warning: ini_set() has been disabled for security reasons in /in/Fgolm on line 3 Fatal error: Class 'DateTime' not found in /in/Fgolm on line 4
Process exited with code 255.
Output for 4.3.5 - 4.4.9
Warning: ini_set() has been disabled for security reasons in /in/Fgolm on line 3 Fatal error: Cannot instantiate non-existent class: datetime in /in/Fgolm on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/Fgolm on line 3 Fatal error: Cannot instantiate non-existent class: datetime in /in/Fgolm on line 4
Process exited with code 255.
Output for 4.3.1
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/Fgolm on line 3 Fatal error: Cannot instantiate non-existent class: datetime in /in/Fgolm on line 4
Output for 4.3.0
Fatal error: Cannot instantiate non-existent class: datetime in /in/Fgolm on line 4