3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = new DateTime(); var_dump($test->getTimeStamp());
based on AGo06
Output for 5.6.28, 7.0.20 - 7.2.0
int(1451322275)
Output for 7.0.6
int(1463828837)
Output for 7.0.5
int(1459667464)
Output for 7.0.4
int(1457641020)
Output for 7.0.3
int(1458337143)
Output for 7.0.2
int(1458705151)
Output for 7.0.1
int(1458802873)
Output for 7.0.0
int(1459065278)
Output for 5.6.21
int(1462197814)
Output for 5.6.20
int(1460268773)
Output for 5.6.19
int(1457411069)
Output for 5.6.18
int(1458048022)
Output for 5.6.17
int(1458435156)
Output for 5.6.16
int(1459154648)
Output for 5.6.15
int(1459243987)
Output for 5.6.14
int(1460646927)
Output for 5.6.13
int(1460735669)
Output for 5.6.12
int(1461133413)
Output for 5.6.11
int(1461502146)
Output for 5.6.10
int(1461596092)
Output for 5.6.9
int(1461787922)
Output for 5.6.8
int(1461991904)
Output for 5.5.35
int(1463960339)
Output for 5.5.34
int(1460363183)
Output for 5.5.33
int(1457508213)
Output for 5.5.32
int(1458234980)
Output for 5.5.31
int(1458532867)
Output for 5.5.30
int(1459509932)
Output for 5.5.29
int(1460873544)
Output for 5.5.28
int(1461231693)
Output for 5.5.27
int(1461324052)
Output for 5.5.26
int(1461692129)
Output for 5.5.25
int(1461891580)
Output for 5.5.24
int(1464074676)
Output for 5.4.45
int(1451322279)
Output for 5.4.44
int(1451322280)
Output for 5.4.43
int(1451322281)
Output for 5.4.41 - 5.4.42
int(1451322282)
Output for 5.4.39 - 5.4.40
int(1451322283)
Output for 5.4.36 - 5.4.38
int(1451322284)
Output for 5.4.34 - 5.4.35
int(1451322285)
Output for 5.3.29, 5.4.31 - 5.4.32
int(1451322286)
Output for 5.4.27 - 5.4.30
int(1451322287)
Output for 5.4.23 - 5.4.26
int(1451322288)
Output for 5.3.28, 5.4.20 - 5.4.22
int(1451322289)
Output for 5.3.27, 5.4.17 - 5.4.19
int(1451322290)
Output for 5.3.24 - 5.3.26, 5.4.13 - 5.4.16
int(1451322291)
Output for 5.3.21 - 5.3.23, 5.4.11 - 5.4.12
int(1451322292)