3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (\DateTimeZone::listIdentifiers(\DateTimeZone::ALL_WITH_BC) as $tz) { try { new \DateTimeZone($tz); if (preg_match('{\AEtc/GMT[+-]\d+\z}', $tz)) { echo "OK: $tz", PHP_EOL; } } catch (\Throwable $ex) { echo "FAIL: $tz", PHP_EOL; } }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
213.2 ms | 3524 KiB | 9 Q