3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $closeTs = new DateTime(null); var_dump($closeTs->format('U'));
Output for 5.6.28, 7.0.14 - 7.1.0
string(10) "1406110837"
Output for 7.0.6
string(10) "1462284242"
Output for 7.0.5
string(10) "1459651009"
Output for 7.0.4
string(10) "1457622467"
Output for 7.0.3
string(10) "1458316152"
Output for 7.0.2
string(10) "1458683756"
Output for 7.0.1
string(10) "1458785515"
Output for 7.0.0
string(10) "1459048176"
Output for 5.6.21
string(10) "1462180468"
Output for 5.6.20
string(10) "1460252036"
Output for 5.6.19
string(10) "1457390948"
Output for 5.6.18
string(10) "1458027942"
Output for 5.6.17
string(10) "1458416375"
Output for 5.6.16
string(10) "1459137474"
Output for 5.6.15
string(10) "1459226968"
Output for 5.6.14
string(10) "1459579723"
Output for 5.6.13
string(10) "1460718201"
Output for 5.6.12
string(10) "1461115606"
Output for 5.6.11
string(10) "1461398338"
Output for 5.6.10
string(10) "1461577980"
Output for 5.6.9
string(10) "1461769208"
Output for 5.6.8
string(10) "1461973267"
Output for 5.5.35
string(10) "1463926176"
Output for 5.5.34
string(10) "1460346500"
Output for 5.5.33
string(10) "1457488507"
Output for 5.5.32
string(10) "1458214005"
Output for 5.5.31
string(10) "1458512720"
Output for 5.5.30
string(10) "1459492980"
Output for 5.5.29
string(10) "1460856289"
Output for 5.5.28
string(10) "1461213444"
Output for 5.5.27
string(10) "1461306946"
Output for 5.5.26
string(10) "1461673986"
Output for 5.5.25
string(10) "1461871181"
Output for 5.5.24
string(10) "1464055710"
Output for 5.4.45
string(10) "1441433031"
Output for 5.4.44
string(10) "1439722617"
Output for 5.4.43
string(10) "1439722612"
Output for 5.4.42
string(10) "1439722611"
Output for 5.4.41
string(10) "1439722609"
Output for 5.4.40
string(10) "1439722604"
Output for 5.4.39
string(10) "1439722603"
Output for 5.4.38
string(10) "1425535530"
Output for 5.4.36 - 5.4.37
string(10) "1425535524"
Output for 5.4.34 - 5.4.35
string(10) "1425535523"
Output for 5.4.31 - 5.4.32
string(10) "1410650071"
Output for 5.4.14 - 5.4.30
string(10) "1406110841"
Output for 5.3.22 - 5.3.28, 5.4.0 - 5.4.13
string(10) "1406110842"
Output for 5.3.29
string(10) "1410650070"
Output for 5.2.17 - 5.3.21
string(10) "1406110843"
Output for 5.2.0 - 5.2.16
string(10) "1406110844"
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/AJrnf on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/AJrnf on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/AJrnf on line 3