3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(date_parse("13:01 P.M."));
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.24, 7.4.0 - 7.4.13, 8.0.0
Array ( [year] => [month] => [day] => [hour] => 13 [minute] => 1 [second] => 0 [fraction] => 0 [warning_count] => 1 [warnings] => Array ( [8] => Double timezone specification ) [error_count] => 0 [errors] => Array ( ) [is_localtime] => 1 [zone_type] => 2 [zone] => -10800 [is_dst] => [tz_abbr] => P )
Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
Array ( [year] => [month] => [day] => [hour] => 13 [minute] => 1 [second] => 0 [fraction] => 0 [warning_count] => 1 [warnings] => Array ( [8] => Double timezone specification ) [error_count] => 0 [errors] => Array ( ) [is_localtime] => 1 [zone_type] => 2 [zone] => 180 [is_dst] => [tz_abbr] => P )