3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // set the default timezone to use. Available since PHP 5.1 date_default_timezone_set('Etc/UTC-7'); // Prints something like: Monday 8th of August 2005 03:12:46 PM echo date('l jS \of F Y h:i:s A'); ?>
based on erQvL
Output for 5.1.2 - 7.2.6
Notice: date_default_timezone_set(): Timezone ID 'Etc/UTC-7' is invalid in /in/k9jMu on line 3 Thursday 2nd of April 2015 10:17:48 AM
Output for 5.1.0 - 5.1.1
Notice: date(): Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone in /in/k9jMu on line 5 Thursday 2nd of April 2015 08:17:48 AM
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/k9jMu on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/k9jMu on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/k9jMu on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/k9jMu on line 3