3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $expire_at=new DateTime(); $expire_at->setTime($expire_at->format('G'), 59, 59); echo $expire_at->getTimestamp(); //echo $expire_at->format('Y-m-d H:i:s');
based on mqVbl
Output for 5.3.0 - 5.4.32, 5.6.28, 7.0.14 - 7.1.0
1409133599
Output for 7.0.6
1463849999
Output for 7.0.5
1460642399
Output for 7.0.4
1457625599
Output for 7.0.3
1458316799
Output for 7.0.2
1458683999
Output for 7.0.1
1458788399
Output for 7.0.0
1459079999
Output for 5.6.21
1462215599
Output for 5.6.20
1460285999
Output for 5.6.19
1457391599
Output for 5.6.18
1458028799
Output for 5.6.17
1458417599
Output for 5.6.16
1459166399
Output for 5.6.15
1459256399
Output for 5.6.14
1460660399
Output for 5.6.13
1460750399
Output for 5.6.12
1461149999
Output for 5.6.11
1461517199
Output for 5.6.10
1461610799
Output for 5.6.9
1461805199
Output for 5.6.8
1462006799
Output for 5.5.35
1463990399
Output for 5.5.34
1460379599
Output for 5.5.33
1457488799
Output for 5.5.32
1458215999
Output for 5.5.31
1458514799
Output for 5.5.30
1459522799
Output for 5.5.29
1460887199
Output for 5.5.28
1461247199
Output for 5.5.27
1461337199
Output for 5.5.26
1461707999
Output for 5.5.25
1461905999
Output for 5.5.24
1464091199
Output for 5.4.45
1441436399
Output for 5.4.39 - 5.4.44
1439733599
Output for 5.4.34 - 5.4.38
1425571199
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::getTimestamp() in /in/tjvnR on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/tjvnR on line 2
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/tjvnR on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/tjvnR 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/tjvnR on line 2