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 Y H:i');
Output for 5.6.28, 7.0.12 - 7.1.0
Jul 03 2013 03:03
Output for 7.0.6
Jul 03 2013 15:04
Output for 7.0.5
Jul 03 2013 03:41
Output for 7.0.4
Jul 03 2013 15:02
Output for 7.0.3
Jul 03 2013 15:40
Output for 7.0.2
Jul 03 2013 21:47
Output for 7.0.1
Jul 03 2013 02:12
Output for 7.0.0
Jul 03 2013 04:11
Output for hhvm-3.12.0
Jul 03 2013 11:53
Output for hhvm-3.10.0
Jul 03 2013 20:18
Output for 5.6.21
Jul 03 2013 10:16
Output for 5.6.20
Jul 03 2013 02:37
Output for 5.6.19
Jul 03 2013 22:46
Output for 5.6.18
Jul 03 2013 07:37
Output for 5.6.17
Jul 03 2013 19:36
Output for 5.6.16
Jul 03 2013 05:00
Output for 5.6.15
Jul 03 2013 05:53
Output for 5.6.14
Jul 03 2013 07:56
Output for 5.6.13
Jul 03 2013 12:07
Output for 5.5.29, 5.6.12
Jul 03 2013 02:26
Output for 5.6.11
Jul 03 2013 09:02
Output for 5.6.10
Jul 03 2013 10:53
Output for 5.6.9
Jul 03 2013 15:59
Output for 5.6.8
Jul 03 2013 00:33
Output for 5.5.35
Jul 03 2013 14:26
Output for 5.5.34
Jul 03 2013 04:53
Output for 5.5.33
Jul 03 2013 01:51
Output for 5.5.32
Jul 03 2013 11:06
Output for 5.5.31
Jul 03 2013 22:21
Output for 5.5.30
Jul 03 2013 07:46
Output for 5.5.28
Jul 03 2013 05:37
Output for 5.5.27
Jul 03 2013 07:39
Output for 5.5.26
Jul 03 2013 13:32
Output for 5.5.25
Jul 03 2013 20:01
Output for 5.5.24
Jul 03 2013 03:08
Output for 5.3.0 - 5.4.45
Jul 03 2013 18:52
Output for 5.2.10 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/a5eqg 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/a5eqg on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/a5eqg on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'datetime' in /in/a5eqg on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'datetime' in /in/a5eqg on line 2