ParseError

A ParseError is thrown when an error occurs while parsing PHP code, such as when eval() is called or when including non-compilable code.

<?php

try {
     eval (' A A ');
} catch (ParseError $e) {
     echo "This is not PHP code";
}

?>

Documentation

Related : Error, Eval()

Added in PHP 7.0+