3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = new DateTime('now', new DateTimeZone("America/Sao_Paulo")); echo 'TimeStamp: '. ($data->getTimestamp() + $data->getOffset());
Output for 5.6.28, 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.14, 8.4.1
TimeStamp: 1444269296
Output for 7.0.6
TimeStamp: 1462257990
Output for 7.0.5
TimeStamp: 1459625576
Output for 7.0.4
TimeStamp: 1457593969
Output for 7.0.3
TimeStamp: 1458287644
Output for 7.0.2
TimeStamp: 1458654668
Output for 7.0.1
TimeStamp: 1458757125
Output for 7.0.0
TimeStamp: 1459021694
Output for 5.6.21
TimeStamp: 1462154486
Output for 5.6.20
TimeStamp: 1460226246
Output for 5.6.19
TimeStamp: 1457363741
Output for 5.6.18
TimeStamp: 1457999261
Output for 5.6.17
TimeStamp: 1458389082
Output for 5.6.16
TimeStamp: 1459111562
Output for 5.6.15
TimeStamp: 1459201316
Output for 5.6.14
TimeStamp: 1459554937
Output for 5.6.13
TimeStamp: 1460692390
Output for 5.6.12
TimeStamp: 1461088127
Output for 5.6.11
TimeStamp: 1461372347
Output for 5.6.10
TimeStamp: 1461551529
Output for 5.6.9
TimeStamp: 1461742507
Output for 5.6.8
TimeStamp: 1461944613
Output for 5.5.35
TimeStamp: 1463896070
Output for 5.5.34
TimeStamp: 1460321094
Output for 5.5.33
TimeStamp: 1457460840
Output for 5.5.32
TimeStamp: 1458178509
Output for 5.5.31
TimeStamp: 1458485293
Output for 5.5.30
TimeStamp: 1459467446
Output for 5.5.29
TimeStamp: 1460829678
Output for 5.5.28
TimeStamp: 1461186499
Output for 5.5.27
TimeStamp: 1461281236
Output for 5.5.26
TimeStamp: 1461646994
Output for 5.5.25
TimeStamp: 1461843003
Output for 5.5.24
TimeStamp: 1464028623
Output for 5.4.42 - 5.4.45
TimeStamp: 1444269305
Output for 5.4.34 - 5.4.41
TimeStamp: 1444269306
Output for 5.4.25 - 5.4.32
TimeStamp: 1444269307
Output for 5.4.17 - 5.4.24
TimeStamp: 1444269308
Output for 5.4.10 - 5.4.16
TimeStamp: 1444269309
Output for 5.4.8 - 5.4.9
TimeStamp: 1444269310
Output for 5.4.7
TimeStamp: 1445900134
Output for 5.4.6
TimeStamp: 1445905486
Output for 5.4.5
TimeStamp: 1445910907
Output for 5.4.4
TimeStamp: 1445916698
Output for 5.4.3
TimeStamp: 1445922777
Output for 5.4.2
TimeStamp: 1445929100

preferences:
78.32 ms | 467 KiB | 5 Q