3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(date_create_from_format('Y-m-d H:i:s', '2016-1-2 3:4:5')); var_export(date_parse_from_format('Y-m-d H:i:s', '2016-1-2 3:4:5'));
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.26, 8.1.0 - 8.1.13
falsearray ( 'year' => 2016, 'month' => 1, 'day' => 2, 'hour' => 3, 'minute' => 0, 'second' => 0, 'fraction' => 0.0, 'warning_count' => 0, 'warnings' => array ( ), 'error_count' => 2, 'errors' => array ( 11 => 'A two digit minute could not be found', 13 => 'A two digit second could not be found', ), 'is_localtime' => false, )

preferences:
58.62 ms | 410 KiB | 5 Q