3v4l.org

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