Previous versions of PHP shows all errors during execution. Now PHP7 seems to me, that it checks only that part of the code which will be executed. If there is a conditional part, after an if, and it won't be executed, even there is an undefined function, the code is executes with no error.
I tried even the error_reporting(-1); setting - not any effect.
if (true)
$mycon = some_function_that_is_undefined();
// result: Fatal error: Uncaught Error: Call to undefined function
if (false)
$mycon = some_function_that_is_undefined();
// result no error, the following code is executed
I expected that if there is a fatal error in my code, it will cause en error even if it wont't be executed in the actual conditions. It works the same way if there is variable instead of the true/false constant.