3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $expire_at=new DateTime(); echo $expire_at->getTimestamp();
Output for 5.6.28, 7.0.14 - 7.1.0
1409130404
Output for 7.0.6
1462261316
Output for 7.0.5
1459629247
Output for 7.0.4
1457597191
Output for 7.0.3
1458290613
Output for 7.0.2
1458657442
Output for 7.0.1
1458760966
Output for 7.0.0
1459025721
Output for hhvm-3.12.0
1457730565
Output for hhvm-3.10.0
1459329116
Output for 5.6.21
1462158219
Output for 5.6.20
1460230256
Output for 5.6.19
1457367276
Output for 5.6.18
1458000524
Output for 5.6.17
1458392349
Output for 5.6.16
1459114846
Output for 5.6.15
1459205158
Output for 5.6.14
1459559212
Output for 5.6.13
1460696463
Output for 5.6.12
1461091541
Output for 5.6.11
1461376170
Output for 5.6.10
1461555193
Output for 5.6.9
1461745879
Output for 5.6.8
1461947770
Output for 5.5.35
1463899623
Output for 5.5.34
1460325074
Output for 5.5.33
1457464298
Output for 5.5.32
1458179515
Output for 5.5.31
1458488698
Output for 5.5.30
1459471297
Output for 5.5.29
1460833596
Output for 5.5.28
1461189052
Output for 5.5.27
1461284428
Output for 5.5.26
1461650415
Output for 5.5.25
1461845889
Output for 5.5.24
1464032355
Output for 5.4.45
1442832710
Output for 5.4.44
1442832705
Output for 5.4.43
1442832699
Output for 5.4.42
1442832697
Output for 5.4.41
1442832694
Output for 5.4.40
1442832691
Output for 5.4.39
1442832689
Output for 5.4.38
1425566855
Output for 5.4.37
1425566847
Output for 5.4.35 - 5.4.36
1425566846
Output for 5.4.34
1425566845
Output for 5.4.22 - 5.4.32
1409130408
Output for 5.4.1 - 5.4.21
1409130409
Output for 5.3.9 - 5.4.0
1409130410
Output for 5.3.0 - 5.3.8
1409130411
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::getTimestamp() in /in/DO6Y3 on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/DO6Y3 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/DO6Y3 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/DO6Y3 on line 2