3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
foreach(arra<?phpy("Asia/Calcutta", "Asia/Kolkata") as $tz) {echo $tz,"=", (int)in_array($tz, timezone_identifiers_list()), "\n";}
based on j1kGV
Output for 5.4.0 - 5.5.15
Parse error: syntax error, unexpected 'as' (T_AS) in /in/TT0GZ on line 1
Process exited with code 255.
Output for 4.3.0 - 5.3.29
foreach(arra<?phpy("Asia/Calcutta", "Asia/Kolkata") as $tz) {echo $tz,"=", (int)in_array($tz, timezone_identifiers_list()), "\n";}