3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set("America/Chicago"); ini_set("date.timezone", "America/Los_Angeles"); echo "ddts: " . date_default_timezone_get() . "\n"; echo "ini: " . ini_get("date.timezone") . "\n";
Output for 5.4.34 - 5.6.28, 7.0.0 - 7.1.0
ddts: America/Chicago ini: America/Los_Angeles
Output for hhvm-3.12.0
ddts: America/Los_Angeles ini: America/Los_Angeles
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.1.0 - 5.4.32
Warning: ini_set() has been disabled for security reasons in /in/7TCZA on line 4 ddts: America/Chicago ini: Europe/Amsterdam
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/7TCZA 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/7TCZA 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/7TCZA 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/7TCZA on line 3