3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(string $timezone) { $ok = true; try { new DateTimeZone($timezone); } catch (Exception $e) { $ok = false; } echo "$timezone: ", var_export($ok, true), "\n"; } test('+01:00'); test('+01:00:00');

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
154.96 ms | 2008 KiB | 13 Q