3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = DateTime::createFromFormat('n/d/Y', '7/03/2013'); echo $dt->format('F d, Y H:i A');
Output for 5.6.28, 7.0.12 - 7.1.0
July 03, 2013 03:07 AM
Output for 7.0.6
July 03, 2013 10:55 AM
Output for 7.0.5
July 03, 2013 23:38 PM
Output for 7.0.4
July 03, 2013 10:20 AM
Output for 7.0.3
July 03, 2013 11:00 AM
Output for 7.0.2
July 03, 2013 16:58 PM
Output for 7.0.1
July 03, 2013 21:30 PM
Output for 7.0.0
July 03, 2013 23:02 PM
Output for 5.6.21
July 03, 2013 06:15 AM
Output for 5.6.20
July 03, 2013 22:39 PM
Output for 5.6.19
July 03, 2013 18:26 PM
Output for 5.6.18
July 03, 2013 02:55 AM
Output for 5.6.17
July 03, 2013 15:13 PM
Output for 5.6.16
July 03, 2013 00:59 AM
Output for 5.6.15
July 03, 2013 01:55 AM
Output for 5.6.14
July 03, 2013 04:12 AM
Output for 5.6.13
July 03, 2013 08:08 AM
Output for 5.6.12
July 03, 2013 21:59 PM
Output for 5.6.11
July 03, 2013 04:59 AM
Output for 5.6.10
July 03, 2013 06:44 AM
Output for 5.6.9
July 03, 2013 11:44 AM
Output for 5.6.8
July 03, 2013 19:54 PM
Output for 5.5.35
July 03, 2013 10:02 AM
Output for 5.5.34
July 03, 2013 01:00 AM
Output for 5.5.33
July 03, 2013 21:22 PM
Output for 5.5.32
July 03, 2013 04:10 AM
Output for 5.5.31
July 03, 2013 17:57 PM
Output for 5.5.30
July 03, 2013 03:51 AM
Output for 5.5.29
July 03, 2013 22:16 PM
Output for 5.5.28
July 03, 2013 01:17 AM
Output for 5.5.27
July 03, 2013 03:40 AM
Output for 5.5.26
July 03, 2013 09:12 AM
Output for 5.5.25
July 03, 2013 15:37 PM
Output for 5.5.24
July 03, 2013 22:50 PM
Output for 5.3.0 - 5.4.45
July 03, 2013 11:18 AM
Output for 5.2.10 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/TfVKZ 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/TfVKZ on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/TfVKZ on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'datetime' in /in/TfVKZ on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'datetime' in /in/TfVKZ on line 2