3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = date_parse_from_format('Y-m-d G:i.u', '2017-01-01 99:71.058364'); var_dump($dt);
based on dtrer
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(1) ["day"]=> int(1) ["hour"]=> int(99) ["minute"]=> int(71) ["second"]=> int(0) ["fraction"]=> float(0.058364) ["warning_count"]=> int(1) ["warnings"]=> array(1) { [23]=> string(27) "The parsed time was invalid" } ["error_count"]=> int(0) ["errors"]=> array(0) { } ["is_localtime"]=> bool(false) }