3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = date_parse_from_format('Y-m-d G:i', '2017-02-30 00:00'); var_dump($dt);
based on lCMro
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0beta1
array(12) { ["year"]=> int(2017) ["month"]=> int(2) ["day"]=> int(30) ["hour"]=> int(0) ["minute"]=> int(0) ["second"]=> int(0) ["fraction"]=> bool(false) ["warning_count"]=> int(1) ["warnings"]=> array(1) { [16]=> string(27) "The parsed date was invalid" } ["error_count"]=> int(0) ["errors"]=> array(0) { } ["is_localtime"]=> bool(false) }