<?php try { $tz = new DateTimeZone('Invalid timezone'); } catch (\Exception $exception) { echo "Invalid time zone (error: " . $exception->getMessage() . ")\n"; $tz = null; } var_dump($tz);
You have javascript disabled. You will not be able to edit any code.