3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(new DateTime('@1463387612')); print_r((new DateTime('@1463387612'))->setTimezone(new DateTimeZone('Europe/London')));
based on FQOIl
Output for 5.5.14 - 7.3.0beta1
DateTime Object ( [date] => 2016-05-16 08:33:32.000000 [timezone_type] => 1 [timezone] => +00:00 ) DateTime Object ( [date] => 2016-05-16 09:33:32.000000 [timezone_type] => 3 [timezone] => Europe/London )
Output for 5.5.0 - 5.5.13
DateTime Object ( [date] => 2016-05-16 08:33:32 [timezone_type] => 1 [timezone] => +00:00 ) DateTime Object ( [date] => 2016-05-16 09:33:32 [timezone_type] => 3 [timezone] => Europe/London )