News for hackers. Stuff that matters.
Re:New in PHP 8 by scandinavian on Monday February 03, 2020 @01:41AM (#22221963)
https://3v4l.org/saHj2

However you could just catch Exception. Not sure why a parse error is a "Fatal error".

Re:New in PHP 8 by gnud on Monday February 03, 2020 @09:49AM (#22224551)
A PHP parse error (of your code) 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.