3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $jan1 = mktime(0, 0, 0, 1, 1, 2012); var_dump($jan1); date_default_timezone_set('Europe/Lisbon'); $jan1 = mktime(0, 0, 0, 1, 1, 2012); var_dump($jan1); ?>
Output for 5.1.0 - 7.1.0
int(1325372400) int(1325376000)
Output for 5.0.0 - 5.0.5
int(1325372400) Fatal error: Call to undefined function date_default_timezone_set() in /in/Z87Vf on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
int(1325372400) Fatal error: Call to undefined function: date_default_timezone_set() in /in/Z87Vf on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
int(1325372400) Fatal error: Call to undefined function: date_default_timezone_set() in /in/Z87Vf on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
int(1325372400) Fatal error: Call to undefined function: date_default_timezone_set() in /in/Z87Vf on line 4