PHP VERSION: 7.0.26

throwable_interface_parse_error_include.php

<?php
// throwable interface: ParseError

try {
    include 
"this_code_has_issues.php";
} catch (\
ParseError $error) {
    
// Handle $error
    
echo 'Sorry ... parse error';
}
echo 
PHP_EOL;

Output


Sorry ... parse error
SOURCE CODE