- var_dump: documentation ( source)
<?php
$dateWithTimezoneLocation = new \DateTime('now', new \DateTimeZone('Europe/Paris'));
$dateWithTimezoneUTCDifference = new \DateTime($d->format(\DateTime::ISO8601));
var_dump($dateWithTimezoneLocation, $dateWithTimezoneUTCDifference, $dateWithTimezoneLocation->getLocation(), $dateWithTimezoneUTCDifference->getLocation());
var_dump($d2);