PHP uses the ini settings for the default timezone, if they are not set, the runtime will produce a warning.
http://php.net/manual/en/datetime.configuration.php
http://php.net/manual/en/function.date-default-timezone-get.php
You can use date_default_timezone_get() to get the current timezone from the ini.
The recommended way for time is to use a DateTime object while specifically setting the timezone for the object.
// use statements for classes outside of our namespace
use DateTime;
use DateTimeZone;
// declare a new DateTime and get the current unix Timestamp
$dt = new DateTime("now", new DateTimeZone("GMT"));
echo $dt->getTimestamp();