3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $freshdate = '09/07/2015 (Mon)'; $date = DateTime::createFromFormat("m/d/Y (D", rtrim($freshdate, ')')); if (!$date) { var_dump('error', DateTime::getLastErrors()); } echo $date->format('Y-m-d H:i:s');
based on uSa7c
Output for 5.6.28, 7.0.20 - 7.2.0
2015-09-07 23:12:26
Output for 7.0.6
2015-09-07 09:08:31
Output for 7.0.5
2015-09-07 22:02:10
Output for 7.0.4
2015-09-07 08:29:05
Output for 7.0.3
2015-09-07 09:04:48
Output for 7.0.2
2015-09-07 14:50:09
Output for 7.0.1
2015-09-07 19:47:54
Output for 7.0.0
2015-09-07 21:21:50
Output for 5.6.21
2015-09-07 04:29:21
Output for 5.6.20
2015-09-07 20:57:31
Output for 5.6.19
2015-09-07 16:37:33
Output for 5.6.18
2015-09-07 00:24:30
Output for 5.6.17
2015-09-07 13:21:46
Output for 5.6.16
2015-09-07 23:07:16
Output for 5.6.15
2015-09-07 23:59:51
Output for 5.6.14
2015-09-07 02:34:39
Output for 5.6.13
2015-09-07 06:28:46
Output for 5.6.12
2015-09-07 20:10:13
Output for 5.6.11
2015-09-07 03:15:45
Output for 5.6.10
2015-09-07 04:58:49
Output for 5.6.9
2015-09-07 09:56:42
Output for 5.6.8
2015-09-07 18:00:36
Output for 5.5.35
2015-09-07 08:14:21
Output for 5.5.34
2015-09-07 23:19:08
Output for 5.5.33
2015-09-07 19:33:54
Output for 5.5.32
2015-09-07 02:14:49
Output for 5.5.31
2015-09-07 16:07:35
Output for 5.5.30
2015-09-07 02:08:20
Output for 5.5.29
2015-09-07 20:33:45
Output for 5.5.28
2015-09-07 23:16:08
Output for 5.5.27
2015-09-07 01:46:07
Output for 5.5.26
2015-09-07 07:26:06
Output for 5.5.25
2015-09-07 13:30:51
Output for 5.5.24
2015-09-07 20:45:23
Output for 5.4.40 - 5.4.45
2015-09-07 23:12:35
Output for 5.4.32 - 5.4.39
2015-09-07 23:12:36
Output for 5.4.25 - 5.4.31
2015-09-07 23:12:37
Output for 5.4.18 - 5.4.24
2015-09-07 23:12:38
Output for 5.4.11 - 5.4.17
2015-09-07 23:12:39
Output for 5.4.7 - 5.4.10
2015-09-07 23:12:40
Output for 5.4.6
2015-09-07 03:20:20
Output for 5.4.5
2015-09-07 04:50:54
Output for 5.4.4
2015-09-07 06:26:25
Output for 5.4.3
2015-09-07 08:08:00
Output for 5.4.2
2015-09-07 09:53:26
Output for 5.3.28 - 5.3.29
2015-09-07 17:43:00
Output for 5.3.26 - 5.3.27
2015-09-07 17:42:59
Output for 5.3.24 - 5.3.25
2015-09-07 17:42:58
Output for 5.3.22 - 5.3.23
2015-09-07 17:42:57
Output for 5.3.21
2015-09-07 17:42:56
Output for 5.3.19 - 5.3.20
2015-09-07 17:42:55
Output for 5.3.17 - 5.3.18
2015-09-07 17:42:54