3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo \DateTime::createFromFormat('Y-m-d', '2015-01-01')->format('Y-m-d H:i:s');
Output for 5.6.28, 7.0.14 - 7.1.0
2015-01-01 09:27:29
Output for 7.0.6
2015-01-01 19:37:43
Output for 7.0.5
2015-01-01 07:58:31
Output for 7.0.4
2015-01-01 19:51:22
Output for 7.0.3
2015-01-01 21:10:23
Output for 7.0.2
2015-01-01 03:19:16
Output for 7.0.1
2015-01-01 06:43:40
Output for 7.0.0
2015-01-01 08:38:49
Output for 5.6.21
2015-01-01 14:45:57
Output for 5.6.20
2015-01-01 06:59:13
Output for 5.6.19
2015-01-01 04:03:50
Output for 5.6.18
2015-01-01 12:54:28
Output for 5.6.17
2015-01-01 00:28:02
Output for 5.6.16
2015-01-01 09:27:40
Output for 5.6.15
2015-01-01 10:17:24
Output for 5.6.14
2015-01-01 12:08:06
Output for 5.6.13
2015-01-01 16:37:57
Output for 5.6.12
2015-01-01 07:05:05
Output for 5.6.11
2015-01-01 13:29:19
Output for 5.6.10
2015-01-01 15:32:32
Output for 5.6.9
2015-01-01 20:41:28
Output for 5.6.8
2015-01-01 05:31:16
Output for 5.5.35
2015-01-01 23:11:12
Output for 5.5.34
2015-01-01 09:10:42
Output for 5.5.33
2015-01-01 06:54:36
Output for 5.5.32
2015-01-01 16:43:40
Output for 5.5.31
2015-01-01 03:33:22
Output for 5.5.30
2015-01-01 12:10:23
Output for 5.5.29
2015-01-01 06:56:22
Output for 5.5.28
2015-01-01 10:20:23
Output for 5.5.27
2015-01-01 12:03:33
Output for 5.5.26
2015-01-01 18:13:55
Output for 5.5.25
2015-01-01 01:36:10
Output for 5.5.24
2015-01-01 07:49:05
Output for 5.4.45
2015-01-01 22:06:52
Output for 5.4.44
2015-01-01 22:06:48
Output for 5.4.43
2015-01-01 22:06:43
Output for 5.4.42
2015-01-01 16:50:36
Output for 5.4.41
2015-01-01 16:50:34
Output for 5.4.40
2015-01-01 16:50:29
Output for 5.4.39
2015-01-01 16:50:28
Output for 5.4.38
2015-01-01 16:50:27
Output for 5.4.37
2015-01-01 16:50:25
Output for 5.4.35 - 5.4.36
2015-01-01 16:50:24
Output for 5.4.15 - 5.4.34
2015-01-01 09:27:34
Output for 5.3.23 - 5.4.14
2015-01-01 09:27:35
Output for 5.3.1 - 5.3.22
2015-01-01 09:27:36
Output for 5.3.0
2015-01-01 09:27:37
Output for 5.2.10 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JgtCe on line 2 Fatal error: Call to undefined method DateTime::createFromFormat() in /in/JgtCe on line 2
Process exited with code 255.
Output for 5.2.0 - 5.2.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JgtCe on line 2 Fatal error: Call to undefined method DateTime::createfromformat() in /in/JgtCe on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JgtCe on line 2 Fatal error: Class 'DateTime' not found in /in/JgtCe on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JgtCe on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/JgtCe on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JgtCe on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/JgtCe on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/JgtCe on line 2 Parse error: parse error, expecting `','' or `';'' in /in/JgtCe on line 2
Process exited with code 255.