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/GMT-8'); // 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 vm2jE
Output for 5.1.0 - 7.1.0, 7.1.6 - 7.2.6
Thursday 2nd of April 2015 04:15:53 PM
Output for 7.1.5
Thursday 2nd of April 2015 04:15:54 PM
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/grYUi 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/grYUi 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/grYUi 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/grYUi on line 3