3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set("America/Los_Angeles"); echo date("r", strtotime("now")), "\n"; echo date("r", strtotime("now UTC")), "\n";
Output for 5.1.2 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Fri, 14 Mar 2014 01:58:59 -0700 Thu, 13 Mar 2014 18:58:59 -0700
Output for hhvm-3.12.0
Fri, 14 Mar 2014 01:59:00 -0700 Thu, 13 Mar 2014 18:59:00 -0700
Output for 5.1.0 - 5.1.1
Fri, 14 Mar 2014 01:58:59 -0700 Wed, 31 Dec 1969 16:00:00 -0800
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/uXZ3N 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/uXZ3N 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/uXZ3N 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/uXZ3N on line 3