3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); $ref = $date->getTimestamp(); echo $ref;
Output for 5.6.28, 7.0.20 - 7.2.0
1441799195
Output for 7.0.6
1462256274
Output for 7.0.5
1459624473
Output for 7.0.4
1457591560
Output for 7.0.3
1458284749
Output for 7.0.2
1458651066
Output for 7.0.1
1458755526
Output for 7.0.0
1459020654
Output for 5.6.21
1462153067
Output for 5.6.20
1460225221
Output for 5.6.19
1457361587
Output for 5.6.18
1457994344
Output for 5.6.17
1458386651
Output for 5.6.16
1459109811
Output for 5.6.15
1459199379
Output for 5.6.14
1459554225
Output for 5.6.13
1460691546
Output for 5.6.12
1461086221
Output for 5.6.11
1461370657
Output for 5.6.10
1461550023
Output for 5.6.9
1461740673
Output for 5.6.8
1461942328
Output for 5.6.7
1464169372
Output for 5.5.35
1463894362
Output for 5.5.34
1460320266
Output for 5.5.33
1457458138
Output for 5.5.32
1458173821
Output for 5.5.31
1458483055
Output for 5.5.30
1459466280
Output for 5.5.29
1460828652
Output for 5.5.28
1461183760
Output for 5.5.27
1461279216
Output for 5.5.26
1461645172
Output for 5.5.25
1461839776
Output for 5.5.24
1464024729
Output for 5.4.40 - 5.4.45
1441799201
Output for 5.4.29 - 5.4.39
1441799202
Output for 5.4.18 - 5.4.28
1441799203
Output for 5.4.7 - 5.4.17
1441799204
Output for 5.4.6
1445912177
Output for 5.4.5
1445917626
Output for 5.4.4
1445923330
Output for 5.4.3
1445929413
Output for 5.4.2
1445935739
Output for 5.3.28 - 5.3.29
1442760932
Output for 5.3.26 - 5.3.27
1442760931
Output for 5.3.24 - 5.3.25
1442760930
Output for 5.3.22 - 5.3.23
1442760929
Output for 5.3.20 - 5.3.21
1442760928
Output for 5.3.18 - 5.3.19
1442760927
Output for 5.3.17
1442760926