3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = DateTime::createFromFormat('n/d/Y', '7/03/2013'); echo $dt->format('mm-d H:i:s');
Output for 7.1.0RC3 - 7.1.0
0707-03 03:03:20
Output for 7.0.6
0707-03 17:34:54
Output for 7.0.5
0707-03 06:03:01
Output for 7.0.4
0707-03 17:44:52
Output for 7.0.3
0707-03 18:33:06
Output for 7.0.2
0707-03 00:56:01
Output for 7.0.1
0707-03 04:43:39
Output for 7.0.0
0707-03 06:40:21
Output for hhvm-3.12.0
0707-03 05:16:52
Output for hhvm-3.10.0
0707-03 00:08:34
Output for 5.6.21
0707-03 12:45:00
Output for 5.6.20
0707-03 05:01:40
Output for 5.6.19
0707-03 01:54:37
Output for 5.6.18
0707-03 10:28:38
Output for 5.6.17
0707-03 22:18:44
Output for 5.6.16
0707-03 07:27:36
Output for 5.6.15
0707-03 08:18:39
Output for 5.6.14
0707-03 10:12:56
Output for 5.6.13
0707-03 14:33:13
Output for 5.6.12
0707-03 05:01:05
Output for 5.6.11
0707-03 11:16:17
Output for 5.6.10
0707-03 13:26:55
Output for 5.6.9
0707-03 18:36:00
Output for 5.6.8
0707-03 03:28:37
Output for 5.5.35
0707-03 18:52:49
Output for 5.5.34
0707-03 07:14:55
Output for 5.5.33
0707-03 04:32:31
Output for 5.5.32
0707-03 14:10:57
Output for 5.5.31
0707-03 01:15:50
Output for 5.5.30
0707-03 10:12:02
Output for 5.5.29
0707-03 04:57:49
Output for 5.5.28
0707-03 08:13:39
Output for 5.5.27
0707-03 10:04:08
Output for 5.5.26
0707-03 16:09:10
Output for 5.5.25
0707-03 22:59:57
Output for 5.5.24
0707-03 05:38:02
Output for 5.4.44 - 5.4.45
0707-03 19:21:01
Output for 5.4.42 - 5.4.43
0707-03 19:21:02
Output for 5.4.40 - 5.4.41
0707-03 19:21:03
Output for 5.4.37 - 5.4.39
0707-03 19:21:04
Output for 5.4.34 - 5.4.36
0707-03 19:21:05
Output for 5.3.29, 5.4.31 - 5.4.32
0707-03 19:21:06
Output for 5.4.26 - 5.4.30
0707-03 19:21:07
Output for 5.3.28, 5.4.23 - 5.4.25
0707-03 19:21:08
Output for 5.4.19 - 5.4.22
0707-03 19:21:09
Output for 5.3.25 - 5.3.27, 5.4.16 - 5.4.18
0707-03 19:21:10
Output for 5.3.23 - 5.3.24, 5.4.12 - 5.4.15
0707-03 19:21:11
Output for 5.3.20 - 5.3.22, 5.4.9 - 5.4.11
0707-03 19:21:12
Output for 5.3.15 - 5.3.19, 5.4.6 - 5.4.8
0707-03 19:21:13
Output for 5.3.12 - 5.3.14, 5.4.2 - 5.4.5
0707-03 19:21:14
Output for 5.3.6 - 5.3.11, 5.4.0 - 5.4.1
0707-03 19:21:15
Output for 5.3.3 - 5.3.5
0707-03 19:21:16
Output for 5.3.0 - 5.3.2
0707-03 19:21:17
Output for 5.2.10 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/2psbM 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/2psbM on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/2psbM on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'datetime' in /in/2psbM on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'datetime' in /in/2psbM on line 2