3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = datetime::createfromformat('Y-m-d', '2014-07-30'); echo $dt->format('Y-m-d H:i:s');
Output for 5.6.28, 7.0.14 - 7.1.0
2014-07-30 13:46:32
Output for 7.0.6
2014-07-30 17:29:41
Output for 7.0.5
2014-07-30 05:57:57
Output for 7.0.4
2014-07-30 17:39:43
Output for 7.0.3
2014-07-30 18:27:31
Output for 7.0.2
2014-07-30 00:50:23
Output for 7.0.1
2014-07-30 04:38:38
Output for 7.0.0
2014-07-30 06:35:16
Output for 5.6.21
2014-07-30 12:39:44
Output for 5.6.20
2014-07-30 04:56:36
Output for 5.6.19
2014-07-30 01:48:53
Output for 5.6.18
2014-07-30 10:23:07
Output for 5.6.17
2014-07-30 22:13:17
Output for 5.6.16
2014-07-30 07:22:36
Output for 5.6.15
2014-07-30 08:13:43
Output for 5.6.14
2014-07-30 10:08:08
Output for 5.6.13
2014-07-30 14:28:21
Output for 5.6.12
2014-07-30 04:55:57
Output for 5.6.11
2014-07-30 11:10:50
Output for 5.6.10
2014-07-30 13:21:59
Output for 5.6.9
2014-07-30 18:31:04
Output for 5.6.8
2014-07-30 03:23:39
Output for 5.5.35
2014-07-30 18:46:26
Output for 5.5.34
2014-07-30 07:10:01
Output for 5.5.33
2014-07-30 04:27:11
Output for 5.5.32
2014-07-30 14:05:15
Output for 5.5.31
2014-07-30 01:10:06
Output for 5.5.30
2014-07-30 10:07:01
Output for 5.5.29
2014-07-30 04:52:53
Output for 5.5.28
2014-07-30 08:08:23
Output for 5.5.27
2014-07-30 09:59:03
Output for 5.5.26
2014-07-30 16:03:58
Output for 5.5.25
2014-07-30 22:54:48
Output for 5.5.24
2014-07-30 05:33:15
Output for 5.4.45
2014-07-30 23:40:14
Output for 5.4.44
2014-07-30 21:58:01
Output for 5.4.43
2014-07-30 21:57:59
Output for 5.4.42
2014-07-30 21:57:58
Output for 5.4.41
2014-07-30 14:11:09
Output for 5.4.40
2014-07-30 08:06:24
Output for 5.4.39
2014-07-30 08:06:23
Output for 5.4.38
2014-07-30 00:24:12
Output for 5.4.36 - 5.4.37
2014-07-30 01:15:21
Output for 5.4.35
2014-07-30 14:28:44
Output for 5.4.34
2014-07-30 00:30:35
Output for 5.3.29, 5.4.32
2014-07-30 15:11:11
Output for 5.4.18 - 5.4.31
2014-07-30 13:46:37
Output for 5.3.26 - 5.3.28, 5.4.0 - 5.4.17
2014-07-30 13:46:38
Output for 5.3.4 - 5.3.25
2014-07-30 13:46:39
Output for 5.3.0 - 5.3.3
2014-07-30 13:46:40
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::createfromformat() in /in/en68Y on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'datetime' not found in /in/en68Y on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'datetime' in /in/en68Y on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'datetime' in /in/en68Y on line 2