3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('now'); $date->setTimezone(new DateTimeZone('Europe/London')); echo $date->format('U') . PHP_EOL; $date->setTimezone(new DateTimeZone('Pacific/Nauru')); echo $date->format('U');
based on FBvCf
Output for 5.5.0 - 5.5.1, 5.5.4 - 5.5.28, 5.5.31 - 7.3.1
1452531996 1452531996
Output for 5.5.2 - 5.5.3, 5.5.29 - 5.5.30
1452531997 1452531997
Output for 5.4.44 - 5.4.45
1452532001 1452532001
Output for 5.4.43
1452532002 1452532002
Output for 5.4.41 - 5.4.42
1452532003 1452532003
Output for 5.4.40
1452532004 1452532004
Output for 5.4.38 - 5.4.39
1452532005 1452532005
Output for 5.4.35 - 5.4.37
1452532006 1452532006
Output for 5.4.34
1452532007 1452532007
Output for 5.3.29, 5.4.29 - 5.4.32
1452532008 1452532008
Output for 5.4.26 - 5.4.28
1452532009 1452532009
Output for 5.3.28, 5.4.23 - 5.4.25
1452532010 1452532010
Output for 5.4.20 - 5.4.22
1452532011 1452532011
Output for 5.3.27, 5.4.17 - 5.4.19
1452532012 1452532012
Output for 5.3.23 - 5.3.26, 5.4.13 - 5.4.16
1452532013 1452532013
Output for 5.3.21 - 5.3.22, 5.4.11 - 5.4.12
1452532014 1452532014