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 7.0.20 - 7.2.0
1452531996 1452531996
Output for 7.0.6
1463830716 1463830716
Output for 7.0.5
1459669074 1459669074
Output for 7.0.4
1457642670 1457642670
Output for 7.0.3
1458339052 1458339052
Output for 7.0.2
1458707049 1458707049
Output for 7.0.1
1458804563 1458804563
Output for 7.0.0
1459066957 1459066957
Output for 5.6.21
1462199496 1462199496
Output for 5.6.20
1460270399 1460270399
Output for 5.6.19
1457412822 1457412822
Output for 5.6.18
1458049893 1458049893
Output for 5.6.17
1458437044 1458437044
Output for 5.6.16
1459156333 1459156333
Output for 5.6.15
1459245676 1459245676
Output for 5.6.14
1460648651 1460648651
Output for 5.6.13
1460737393 1460737393
Output for 5.6.12
1461135152 1461135152
Output for 5.6.11
1461503918 1461503918
Output for 5.6.10
1461597874 1461597874
Output for 5.6.9
1461790237 1461790237
Output for 5.6.8
1461993593 1461993593
Output for 5.5.35
1463963608 1463963608
Output for 5.5.34
1460364832 1460364832
Output for 5.5.33
1457509964 1457509964
Output for 5.5.32
1458236932 1458236932
Output for 5.5.31
1458534873 1458534873
Output for 5.5.30
1459511594 1459511594
Output for 5.5.29
1460875255 1460875255
Output for 5.5.28
1461233523 1461233523
Output for 5.5.27
1461325744 1461325744
Output for 5.5.26
1461693952 1461693952
Output for 5.5.25
1461893502 1461893502
Output for 5.5.24
1464076478 1464076478
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