Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on New in PHP 8. Parent comment
However you could just catch Exception. Not sure why a parse error is a "Fatal error".
A xml parsing error in the SimpleXmlElement constructor is not a fatal error - it throws an exception.
An uncaught exception is a fatal error.
However you could just catch Exception. Not sure why a parse error is a "Fatal error".