3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = DateTime::createFromFormat('n/d/Y', '7/03/2013'); echo $dt->format('M-d H:i:s');
Output for 5.6.28, 7.0.12 - 7.1.0
Jul-03 03:03:39
Output for 7.0.6
Jul-03 17:39:55
Output for 7.0.5
Jul-03 06:08:02
Output for 7.0.4
Jul-03 17:50:02
Output for 7.0.3
Jul-03 18:38:51
Output for 7.0.2
Jul-03 01:02:16
Output for 7.0.1
Jul-03 04:48:43
Output for 7.0.0
Jul-03 06:45:26
Output for 5.6.21
Jul-03 12:50:06
Output for 5.6.20
Jul-03 05:06:53
Output for 5.6.19
Jul-03 02:00:16
Output for 5.6.18
Jul-03 10:34:17
Output for 5.6.17
Jul-03 22:24:15
Output for 5.6.16
Jul-03 07:32:47
Output for 5.6.15
Jul-03 08:23:52
Output for 5.6.14
Jul-03 10:17:49
Output for 5.6.13
Jul-03 14:38:17
Output for 5.6.12
Jul-03 05:06:35
Output for 5.6.11
Jul-03 11:21:45
Output for 5.6.10
Jul-03 13:32:02
Output for 5.6.9
Jul-03 18:41:06
Output for 5.6.8
Jul-03 03:33:34
Output for 5.5.35
Jul-03 18:58:59
Output for 5.5.34
Jul-03 07:19:42
Output for 5.5.33
Jul-03 04:37:50
Output for 5.5.32
Jul-03 14:17:08
Output for 5.5.31
Jul-03 01:21:57
Output for 5.5.30
Jul-03 10:17:08
Output for 5.5.29
Jul-03 05:02:52
Output for 5.5.28
Jul-03 08:19:00
Output for 5.5.27
Jul-03 10:09:07
Output for 5.5.26
Jul-03 16:14:28
Output for 5.5.25
Jul-03 23:05:34
Output for 5.5.24
Jul-03 05:42:25
Output for 5.4.44 - 5.4.45
Jul-03 23:06:27
Output for 5.4.42 - 5.4.43
Jul-03 23:06:28
Output for 5.4.40 - 5.4.41
Jul-03 23:06:29
Output for 5.4.37 - 5.4.39
Jul-03 23:06:30
Output for 5.4.35 - 5.4.36
Jul-03 23:06:31
Output for 5.3.29, 5.4.31 - 5.4.34
Jul-03 23:06:32
Output for 5.4.28 - 5.4.30
Jul-03 23:06:33
Output for 5.4.24 - 5.4.27
Jul-03 23:06:34
Output for 5.3.28, 5.4.21 - 5.4.23
Jul-03 23:06:35
Output for 5.3.27, 5.4.18 - 5.4.20
Jul-03 23:06:36
Output for 5.3.24 - 5.3.26, 5.4.14 - 5.4.17
Jul-03 23:06:37
Output for 5.3.20 - 5.3.23, 5.4.10 - 5.4.13
Jul-03 23:06:38
Output for 5.3.16 - 5.3.19, 5.4.6 - 5.4.9
Jul-03 23:06:39
Output for 5.3.12 - 5.3.15, 5.4.3 - 5.4.5
Jul-03 23:06:40
Output for 5.3.8 - 5.3.11, 5.4.0 - 5.4.2
Jul-03 23:06:41
Output for 5.3.3 - 5.3.7
Jul-03 23:06:42
Output for 5.3.0 - 5.3.2
Jul-03 23:06:43
Output for 5.2.10 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/sRtfO on line 2
Process exited with code 255.
Output for 5.2.0 - 5.2.9
Fatal error: Call to undefined method DateTime::createfromformat() in /in/sRtfO on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/sRtfO on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'datetime' in /in/sRtfO on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'datetime' in /in/sRtfO on line 2