3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = date_parse_from_format('Y-m-d H:i:s', ''); var_dump($start);
based on 3FeIR
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(12) { ["year"]=> bool(false) ["month"]=> bool(false) ["day"]=> bool(false) ["hour"]=> bool(false) ["minute"]=> bool(false) ["second"]=> bool(false) ["fraction"]=> bool(false) ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(1) ["errors"]=> array(1) { [0]=> string(12) "Data missing" } ["is_localtime"]=> bool(false) }