Finding PHP coding faults

It depends on what you mean by “fault”

As WebMachine posted, some IDEs can find synax errors for you.

But as an extremely simple contrived example:

function return_greater($a, $b) {
 return min($a, $b);
}

will not be found as a syntax error, as it isn’t.

To find logic errors writing and using some form of unit testing is a good idea.

More work up front, but it can be a big time saver making debugging a lot easier later on.