3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach(array("Asia/Calcutta", "Asia/Kolkata") as $tz) {echo $tz,"=", (int)in_array($tz, timezone_identifiers_list()), "\n";}
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Asia/Calcutta=0 Asia/Kolkata=1
Output for 5.2.6 - 5.2.17
Asia/Calcutta=1 Asia/Kolkata=1
Output for 5.2.0 - 5.2.5
Asia/Calcutta=1 Asia/Kolkata=0
Output for 5.0.0 - 5.1.6
Asia/Calcutta= Fatal error: Call to undefined function timezone_identifiers_list() in /in/j1kGV 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/j1kGV 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/j1kGV 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/j1kGV on line 2