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 Roaut
Output for 7.0.14 - 7.1.0
2014-08-27 11:09:15
Output for 7.0.6
2016-05-03 08:33:39
Output for 7.0.5
2016-04-02 21:29:39
Output for 7.0.4
2016-03-10 07:50:33
Output for 7.0.3
2016-03-18 08:24:23
Output for 7.0.2
2016-03-22 14:10:04
Output for 7.0.1
2016-03-23 19:11:09
Output for 7.0.0
2016-03-26 20:46:56
Output for 5.6.21
2016-05-02 03:53:55
Output for 5.6.20
2016-04-09 20:23:26
Output for 5.6.19
2016-03-07 15:57:57
Output for 5.6.18
2016-03-14 23:43:50
Output for 5.6.17
2016-03-19 12:42:29
Output for 5.6.16
2016-03-27 22:32:47
Output for 5.6.15
2016-03-28 23:25:36
Output for 5.6.14
2016-04-02 01:59:06
Output for 5.6.13
2016-04-15 05:54:43
Output for 5.6.12
2016-04-19 19:33:42
Output for 5.6.11
2016-04-23 02:40:11
Output for 5.6.10
2016-04-25 04:23:30
Output for 5.6.9
2016-04-27 09:21:15
Output for 5.6.8
2016-04-29 17:22:25
Output for 5.6.7
2016-05-25 12:32:37
Output for 5.5.35
2016-05-22 07:36:50
Output for 5.5.34
2016-04-10 22:46:15
Output for 5.5.33
2016-03-08 18:46:48
Output for 5.5.32
2016-03-17 01:35:42
Output for 5.5.31
2016-03-20 15:29:05
Output for 5.5.30
2016-04-01 01:33:34
Output for 5.5.29
2016-04-16 20:00:01
Output for 5.5.28
2016-04-20 22:40:05
Output for 5.5.27
2016-04-22 01:11:07
Output for 5.5.26
2016-04-26 06:49:39
Output for 5.5.25
2016-04-28 12:53:15
Output for 5.5.24
2016-05-23 19:55:16
Output for 5.4.45
2015-09-09 19:59:15
Output for 5.4.44
2015-08-09 20:49:10
Output for 5.4.43
2015-08-09 20:49:06
Output for 5.4.42
2015-08-09 20:49:05
Output for 5.4.41
2015-08-09 20:49:03
Output for 5.4.40
2015-05-13 23:29:18
Output for 5.4.39
2015-05-13 23:29:17
Output for 5.4.38
2015-02-22 17:13:41
Output for 5.4.36 - 5.4.37
2015-02-03 17:43:46
Output for 5.4.35
2014-11-14 11:54:03
Output for 5.4.34
2014-11-13 15:06:12
Output for 5.4.31 - 5.4.32
2014-08-27 11:09:19
Output for 5.4.10 - 5.4.30
2014-08-27 11:09:20
Output for 5.3.18 - 5.4.9
2014-08-27 11:09:21
Output for 5.2.14 - 5.3.17
2014-08-27 11:09:22
Output for 5.2.0 - 5.2.13
2014-08-27 11:09:23
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/mqVbl 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/mqVbl 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/mqVbl on line 2