3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); var_dump($d->format('U'));
based on akhc0
Output for 5.6.28, 7.0.20 - 7.2.0
string(10) "1446213319"
Output for 7.0.6
string(10) "1462291387"
Output for 7.0.5
string(10) "1459657792"
Output for 7.0.4
string(10) "1457630107"
Output for 7.0.3
string(10) "1458325099"
Output for 7.0.2
string(10) "1458692876"
Output for 7.0.1
string(10) "1458792665"
Output for 7.0.0
string(10) "1459055266"
Output for 5.6.21
string(10) "1462187586"
Output for 5.6.20
string(10) "1460258944"
Output for 5.6.19
string(10) "1457400331"
Output for 5.6.18
string(10) "1458036471"
Output for 5.6.17
string(10) "1458424089"
Output for 5.6.16
string(10) "1459144490"
Output for 5.6.15
string(10) "1459233938"
Output for 5.6.14
string(10) "1459586305"
Output for 5.6.13
string(10) "1460725176"
Output for 5.6.12
string(10) "1461122908"
Output for 5.6.11
string(10) "1461491070"
Output for 5.6.10
string(10) "1461585229"
Output for 5.6.9
string(10) "1461776617"
Output for 5.6.8
string(10) "1461981406"
Output for 5.5.35
string(10) "1463938748"
Output for 5.5.34
string(10) "1460353267"
Output for 5.5.33
string(10) "1457496227"
Output for 5.5.32
string(10) "1458222335"
Output for 5.5.31
string(10) "1458521244"
Output for 5.5.30
string(10) "1459499947"
Output for 5.5.29
string(10) "1460863429"
Output for 5.5.28
string(10) "1461220906"
Output for 5.5.27
string(10) "1461313814"
Output for 5.5.26
string(10) "1461681415"
Output for 5.5.25
string(10) "1461878877"
Output for 5.5.24
string(10) "1464062554"
Output for 5.4.38 - 5.4.45
string(10) "1446213328"
Output for 5.4.27 - 5.4.37
string(10) "1446213329"
Output for 5.4.17 - 5.4.26
string(10) "1446213330"
Output for 5.4.7 - 5.4.16
string(10) "1446213331"
Output for 5.3.27 - 5.4.6
string(10) "1446213332"
Output for 5.3.19 - 5.3.26
string(10) "1446213333"