Suppose, I have a PHP file that contains some PHP code. This file also contains few syntactical errors.
If I try to add the code of this file with syntactical errors to another PHP file using either "include" or "require" by specifying the file name with correct path then what will happen during execution?
Will the code execution continue with a warning like it does when "include" fails to load the specified file or will the code execution stop in both scenarios with FATAL ERROR?
I want to know what will happen in both cases viz. "include" and "require" when I try to include a file with syntactical errors to the currently executing PHP file?
Note : I know what is "include" and "require". I also know the difference between them when the specified file is missing. But my question is different as it is related to the syntactical error in a file to be included in both "include" and "require". So, please don't mark my question as duplicate as I have not found a single question asking the thing I've asked.
If someone could explain me with working code examples and the working fiddle, it would be great and easier for me to understand the concept more clearly.