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.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
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, )
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 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:
136.42 ms | 402 KiB | 156 Q