3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new \DateTime('2015-01-26 14:55:30'); var_dump(\DateTime::createFromFormat('c', $date->format('c')), DateTime::getLastErrors());
based on anUAj
Output for 5.5.0 - 7.2.6
bool(false) array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(2) ["errors"]=> array(2) { [0]=> string(35) "The format separator does not match" [1]=> string(13) "Trailing data" } }