3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach(array("Asia/Calcutta", "Asia/Riyadh") as $tz) {echo $tz,"=", (int)in_array($tz, timezone_identifiers_list()), "\n";}
based on j1kGV
Output for 5.3.0 - 7.2.0
Asia/Calcutta=0 Asia/Riyadh=1
Output for 5.2.0 - 5.2.17
Asia/Calcutta=1 Asia/Riyadh=1
Output for 5.0.0 - 5.1.6
Asia/Calcutta= Fatal error: Call to undefined function timezone_identifiers_list() in /in/fuFqH on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Asia/Calcutta= Fatal error: Call to undefined function: timezone_identifiers_list() in /in/fuFqH on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Asia/Calcutta= Fatal error: Call to undefined function: timezone_identifiers_list() in /in/fuFqH on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Asia/Calcutta= Fatal error: Call to undefined function: timezone_identifiers_list() in /in/fuFqH on line 2