3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Asia/Jerusalem'); var_dump(strftime('%z'));
based on 7SUcS
Output for 5.5.24 - 5.5.30, 5.5.34 - 5.6.16, 5.6.20 - 7.0.0, 7.0.5 - 7.3.1
string(5) "+0300"
Output for 5.1.0 - 5.4.45, 5.5.31 - 5.5.33, 5.6.17 - 5.6.19, 7.0.1 - 7.0.4
string(5) "+0200"
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/1sd4c 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/1sd4c 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/1sd4c 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/1sd4c on line 3