3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dataTime = '2016-01-22 15:07:23'; $lastJobDateTime = DateTime::createFromFormat('Y-m-d H:i:s', $dataTime); $lastJobDate = DateTime::createFromFormat('Y-m-d', $lastJobDateTime->format('Y-m-d')); echo $lastJobDateTime->getTimestamp()." "; echo $lastJobDate->getTimestamp();
based on THpL7
Output for 5.6.28, 7.0.20 - 7.2.0
1453471643 1453494562
Output for 7.0.6
1453471643 1453468834
Output for 7.0.5
1453471643 1453453980
Output for 7.0.4
1453471643 1453497704
Output for 7.0.3
1453471643 1453503450
Output for 7.0.2
1453471643 1453439074
Output for 7.0.1
1453471643 1453449998
Output for 7.0.0
1453471643 1453456669
Output for 5.6.21
1453471643 1453478882
Output for 5.6.20
1453471643 1453450500
Output for 5.6.19
1453471643 1453440666
Output for 5.6.18
1453471643 1453473087
Output for 5.6.17
1453471643 1453428569
Output for 5.6.16
1453471643 1453459657
Output for 5.6.15
1453471643 1453462644
Output for 5.6.14
1453471643 1453483222
Output for 5.6.13
1453471643 1453485565
Output for 5.6.12
1453471643 1453451433
Output for 5.6.11
1453471643 1453474592
Output for 5.6.10
1453471643 1453482115
Output for 5.6.9
1453471643 1453501853
Output for 5.6.8
1453471643 1453445810
Output for 5.5.35
1453471643 1453429367
Output for 5.5.34
1453471643 1453458566
Output for 5.5.33
1453471643 1453451784
Output for 5.5.32
1453471643 1453487504
Output for 5.5.31
1453471643 1453439957
Output for 5.5.30
1453471643 1453469296
Output for 5.5.29
1453471643 1453450601
Output for 5.5.28
1453471643 1453463443
Output for 5.5.27
1453471643 1453469212
Output for 5.5.26
1453471643 1453491844
Output for 5.5.25
1453471643 1453432311
Output for 5.5.24
1453471643 1453455741
Output for 5.4.44 - 5.4.45
1453471643 1453494566
Output for 5.4.41 - 5.4.43
1453471643 1453494567
Output for 5.4.40
1453471643 1453494568
Output for 5.4.38 - 5.4.39
1453471643 1453494569
Output for 5.4.36 - 5.4.37
1453471643 1453494570
Output for 5.4.34 - 5.4.35
1453471643 1453494571
Output for 5.3.29, 5.4.29 - 5.4.32
1453471643 1453494572
Output for 5.4.25 - 5.4.28
1453471643 1453494573
Output for 5.3.28, 5.4.21 - 5.4.24
1453471643 1453494574
Output for 5.4.18 - 5.4.20
1453471643 1453494575
Output for 5.3.25 - 5.3.27, 5.4.15 - 5.4.17
1453471643 1453494576
Output for 5.3.22 - 5.3.24, 5.4.12 - 5.4.14
1453471643 1453494577