3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(ini_set('date.timezone', 'JST'));
Output for 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: ini_set(): Invalid date.timezone value 'JST', using 'Europe/Amsterdam' instead in /in/u5fbW on line 2 bool(false)
Output for 7.2.29 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28
Warning: ini_set(): Invalid date.timezone value 'JST', we selected the timezone 'UTC' for now. in /in/u5fbW on line 2 string(16) "Europe/Amsterdam"
Output for 7.3.32 - 7.3.33, 8.0.13
Warning: ini_set(): Invalid date.timezone value 'JST', we selected the timezone 'UTC' for now. in /in/u5fbW on line 2 string(0) ""
Output for 5.4.12 - 5.4.30, 5.5.0 - 5.5.14
Warning: ini_set(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. in /in/u5fbW on line 2 string(16) "Europe/Amsterdam"
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.28, 5.4.0 - 5.4.11
string(16) "Europe/Amsterdam"
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5
bool(false)

preferences:
214.09 ms | 402 KiB | 269 Q