3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(DateTime::createFromFormat('c', '2015-08-31T00:55:00Z')); var_dump(DateTime::createFromFormat(DateTime::ISO8601, '2015-08-31T00:55:00Z')); var_dump(DateTime::createFromFormat(DateTime::ISO8601, '2015-08-31T00:55:00.000Z'));
based on mBLhv
Output for 5.4.34 - 7.2.0
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-08-31 00:55:00.000000" ["timezone_type"]=> int(2) ["timezone"]=> string(1) "Z" } bool(false)
Output for 5.4.30 - 5.4.32
bool(false) object(DateTime)#2 (3) { ["date"]=> string(26) "2015-08-31 00:55:00.000000" ["timezone_type"]=> int(2) ["timezone"]=> string(1) "Z" } bool(false)
Output for 5.3.20 - 5.4.29
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2015-08-31 00:55:00" ["timezone_type"]=> int(2) ["timezone"]=> string(1) "Z" } bool(false)