First of all, I would use an editor that highlights PHP errors on the fly when you enter code, for example, Eclipse PDT (which is quite powerful, actively supported and free, and OSS) - it will help to detect some errors almost immediately, without having to execute code .
If you use it with it, the Subversion plug-in (to integrate SVN access into Eclipse), it can also display what it calls "quick diff": the edge of the modified lines that were not bound to SVN is highlighted - it helps identify that you have changed since the last commit.
Note, however, that since it is based on Eclipse, a rather powerful computer is required (I would say that a dual-core processor with 2 GB of RAM is required, 1 GB is usually not enough if you also want to use some other software at the same time ^^)
Then, when you have been programming in PHP for some time, you will probably be able to understand these messages faster and better and will know where to look :-)
source share