3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach(array("Asia/", "Asia/Kolkata") as $tz) {echo $tz,"=", (int)in_array($tz, timezone_identifiers_list()), "\n";}
Output for 5.2.6 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Asia/=0 Asia/Kolkata=1
Output for 5.2.0 - 5.2.5, hhvm-3.12.0
Asia/=0 Asia/Kolkata=0
Output for 5.0.0 - 5.1.6
Asia/= Fatal error: Call to undefined function timezone_identifiers_list() in /in/RZ6f1 on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Asia/= Fatal error: Call to undefined function: timezone_identifiers_list() in /in/RZ6f1 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Asia/= Fatal error: Call to undefined function: timezone_identifiers_list() in /in/RZ6f1 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Asia/= Fatal error: Call to undefined function: timezone_identifiers_list() in /in/RZ6f1 on line 2