3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $parsed_data = date_parse_from_format('Y-m-d H:i:s', '2015-04-03 17:16:18'); var_dump($parsed_data);
based on Qm5nX
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0rc3
array(12) { ["year"]=> int(2015) ["month"]=> int(4) ["day"]=> int(3) ["hour"]=> int(17) ["minute"]=> int(16) ["second"]=> int(18) ["fraction"]=> bool(false) ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(0) ["errors"]=> array(0) { } ["is_localtime"]=> bool(false) }