3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_REQUEST['tzo'] = -420; $orderdate = new DateTime('2005-10-10'); $timeZoneName = timezone_name_from_abbr("", (-intval($_REQUEST['tzo'])/60)*3600, 1); $orderdate->setTimezone(new DateTimezone($timeZoneName)); var_dump($date->format('c e T')); $date->setTimezone(new DateTimeZone('CET')); var_dump($date->format('c e T'));

preferences:
37.61 ms | 402 KiB | 5 Q