3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = new DATETIME(); echo $data->getTimestamp();
based on 5ldjA
Output for 5.6.28, 7.0.20 - 7.2.0
1447096157
Output for 7.0.6
1462293264
Output for 7.0.5
1459659561
Output for 7.0.4
1457631989
Output for 7.0.3
1458327335
Output for 7.0.2
1458695012
Output for 7.0.1
1458794509
Output for 7.0.0
1459057070
Output for 5.6.21
1462189413
Output for 5.6.20
1460260713
Output for 5.6.19
1457402282
Output for 5.6.18
1458038511
Output for 5.6.17
1458426059
Output for 5.6.16
1459146304
Output for 5.6.15
1459235744
Output for 5.6.14
1459588004
Output for 5.6.13
1460727081
Output for 5.6.12
1461124839
Output for 5.6.11
1461493410
Output for 5.6.10
1461587167
Output for 5.6.9
1461778557
Output for 5.6.8
1461983284
Output for 5.5.35
1463944027
Output for 5.5.34
1460355032
Output for 5.5.33
1457498526
Output for 5.5.32
1458225440
Output for 5.5.31
1458523392
Output for 5.5.30
1459501772
Output for 5.5.29
1460865275
Output for 5.5.28
1461222880
Output for 5.5.27
1461315647
Output for 5.5.26
1461683341
Output for 5.5.25
1461881060
Output for 5.5.24
1464064417
Output for 5.4.45
1447096160
Output for 5.4.44
1447096161
Output for 5.4.42 - 5.4.43
1447096162
Output for 5.4.41
1447096163
Output for 5.4.38 - 5.4.40
1447096164
Output for 5.4.36 - 5.4.37
1447096165
Output for 5.4.34 - 5.4.35
1447096166
Output for 5.3.29, 5.4.29 - 5.4.32
1447096167
Output for 5.4.25 - 5.4.28
1447096168
Output for 5.3.28, 5.4.21 - 5.4.24
1447096169
Output for 5.3.27, 5.4.17 - 5.4.20
1447096170
Output for 5.3.23 - 5.3.26, 5.4.13 - 5.4.16
1447096171
Output for 5.3.19 - 5.3.22, 5.4.9 - 5.4.12
1447096172