3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $to = DateTime::createFromFormat(DateTime::ISO8601, '2013-10-05T14:48:00.000Z'); $from = DateTime::createFromFormat(DateTime::ISO8601, '2013-03-26T09:01:22.104Z'); $a = new DateTime(); $a->createFromFormat(\DateTime::ISO8601,'2013-03-26T09:01:22.104Z'); echo $a->format(\DateTime::ISO8601); var_dump($from);
Output for 5.6.28, 7.0.12 - 7.1.0
2013-03-26T09:12:29+0100bool(false)
Output for 7.0.6
2016-05-03T17:41:34+0200bool(false)
Output for 7.0.5
2016-04-03T06:09:34+0200bool(false)
Output for 7.0.4
2016-03-10T17:51:37+0100bool(false)
Output for 7.0.3
2016-03-18T18:40:34+0100bool(false)
Output for 7.0.2
2016-03-23T01:04:14+0100bool(false)
Output for 7.0.1
2016-03-24T04:50:16+0100bool(false)
Output for 7.0.0
2016-03-27T06:46:58+0200bool(false)
Output for 5.6.21
2016-05-02T12:51:54+0200bool(false)
Output for 5.6.20
2016-04-10T05:08:28+0200bool(false)
Output for 5.6.19
2016-03-08T02:02:59+0100bool(false)
Output for 5.6.18
2016-03-15T10:36:00+0100bool(false)
Output for 5.6.17
2016-03-19T22:25:58+0100bool(false)
Output for 5.6.16
2016-03-28T07:34:15+0200bool(false)
Output for 5.6.15
2016-03-29T08:25:19+0200bool(false)
Output for 5.6.14
2016-04-02T10:19:16+0200bool(false)
Output for 5.6.13
2016-04-15T14:39:51+0200bool(false)
Output for 5.6.12
2016-04-20T05:08:06+0200bool(false)
Output for 5.6.11
2016-04-24T11:23:33+0200bool(false)
Output for 5.6.10
2016-04-25T13:33:39+0200bool(false)
Output for 5.6.9
2016-04-27T18:42:55+0200bool(false)
Output for 5.6.8
2016-04-30T03:35:15+0200bool(false)
Output for 5.5.35
2016-05-22T19:01:11+0200bool(false)
Output for 5.5.34
2016-04-11T07:21:10+0200bool(false)
Output for 5.5.33
2016-03-09T04:39:22+0100bool(false)
Output for 5.5.32
2016-03-17T14:18:50+0100bool(false)
Output for 5.5.31
2016-03-21T01:23:38+0100bool(false)
Output for 5.5.30
2016-04-01T10:18:41+0200bool(false)
Output for 5.5.29
2016-04-17T05:04:29+0200bool(false)
Output for 5.5.28
2016-04-21T08:20:32+0200bool(false)
Output for 5.5.27
2016-04-22T10:10:35+0200bool(false)
Output for 5.5.26
2016-04-26T16:16:00+0200bool(false)
Output for 5.5.25
2016-04-28T23:07:06+0200bool(false)
Output for 5.5.24
2016-05-24T05:43:54+0200bool(false)
Output for 5.4.45
2016-02-19T19:51:12+0100bool(false)
Output for 5.4.44
2016-02-19T19:51:13+0100bool(false)
Output for 5.4.42 - 5.4.43
2016-02-19T19:51:15+0100bool(false)
Output for 5.4.41
2016-02-19T19:51:16+0100bool(false)
Output for 5.4.40
2016-02-19T19:51:18+0100bool(false)
Output for 5.4.39
2016-02-19T19:51:19+0100bool(false)
Output for 5.4.38
2016-02-19T19:51:20+0100bool(false)
Output for 5.4.37
2016-02-19T19:51:21+0100bool(false)
Output for 5.4.36
2016-02-19T19:51:23+0100bool(false)
Output for 5.4.35
2016-02-19T19:51:24+0100bool(false)
Output for 5.4.34
2016-02-19T19:51:25+0100bool(false)
Output for 5.3.29, 5.4.31 - 5.4.32
2016-02-19T19:51:27+0100bool(false)
Output for 5.4.29 - 5.4.30
2016-02-19T19:51:28+0100bool(false)
Output for 5.4.28
2016-02-19T19:51:29+0100bool(false)
Output for 5.4.27
2016-02-19T19:51:30+0100bool(false)
Output for 5.4.26
2016-02-19T19:51:31+0100bool(false)
Output for 5.4.24 - 5.4.25
2016-02-19T19:51:32+0100bool(false)
Output for 5.3.28, 5.4.23
2016-02-19T19:51:33+0100bool(false)
Output for 5.4.21 - 5.4.22
2016-02-19T19:51:34+0100bool(false)
Output for 5.4.20
2016-02-19T19:51:35+0100bool(false)
Output for 5.4.19
2016-02-19T19:51:36+0100bool(false)
Output for 5.3.27, 5.4.17 - 5.4.18
2016-02-19T19:51:37+0100bool(false)
Output for 5.3.25 - 5.3.26, 5.4.15 - 5.4.16
2016-02-19T19:51:38+0100bool(false)
Output for 5.3.24, 5.4.13 - 5.4.14
2016-02-19T19:51:39+0100bool(false)
Output for 5.3.22 - 5.3.23, 5.4.12
2016-02-19T19:51:40+0100bool(false)
Output for 5.3.21, 5.4.11
2016-02-19T19:51:41+0100bool(false)
Output for 5.3.20, 5.4.9 - 5.4.10
2016-02-19T19:51:42+0100bool(false)
Output for 5.3.17, 5.4.7 - 5.4.8
2016-02-19T19:51:44+0100bool(false)
Output for 5.3.16, 5.4.6
2016-02-19T19:51:45+0100bool(false)
Output for 5.3.15, 5.4.5
2016-02-19T19:51:46+0100bool(false)
Output for 5.3.14, 5.4.4
2016-02-19T19:51:47+0100bool(false)
Output for 5.3.13, 5.4.3
2016-02-19T19:51:48+0100bool(false)
Output for 5.3.12, 5.4.2
2016-02-19T19:51:49+0100bool(false)
Output for 5.3.10 - 5.3.11, 5.4.0 - 5.4.1
2016-02-19T19:51:50+0100bool(false)
Output for 5.3.18 - 5.3.19
2016-02-19T19:51:43+0100bool(false)
Output for 5.3.7 - 5.3.9
2016-02-19T19:51:51+0100bool(false)
Output for 5.3.5 - 5.3.6
2016-02-19T19:51:52+0100bool(false)
Output for 5.3.4
2016-02-19T19:51:53+0100bool(false)
Output for 5.3.3
2016-02-19T19:51:54+0100bool(false)
Output for 5.3.2
2016-02-19T19:51:55+0100bool(false)
Output for 5.3.1
2016-02-19T19:51:57+0100bool(false)
Output for 5.3.0
2016-02-19T19:51:58+0100bool(false)
Output for 5.2.10 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ol6Z6 on line 5 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ol6Z6 on line 6 Fatal error: Call to undefined method DateTime::createFromFormat() in /in/ol6Z6 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/ol6Z6 on line 5 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ol6Z6 on line 6 Fatal error: Call to undefined method DateTime::createfromformat() in /in/ol6Z6 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/ol6Z6 on line 5 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ol6Z6 on line 6 Fatal error: Class 'DateTime' not found in /in/ol6Z6 on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected ',', expecting '(' in /in/ol6Z6 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected ',', expecting '(' in /in/ol6Z6 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'('' in /in/ol6Z6 on line 2
Process exited with code 255.