3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = \DateTime::createFromFormat('Y-m-00', '2010-02-00'); var_dump($date,true);
based on H8JaY
Output for 5.6.28, 7.0.20 - 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-03-02 17:24:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.30 - 5.4.45, 5.5.14 - 5.6.22, 7.0.0 - 7.0.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-03-02 17:55:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.0 - 5.4.29, 5.5.0 - 5.5.13
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-03-02 17:55:39" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)