The API for PHP CompatInfo changed significantly in v4.0.0 and therefore this script needs to be updated. One of the major differences is that the data is now stored in an SQLite database and JSON files rather than in PHP source code.
Another noticable difference is that the newer version is missing information regarding the compatibility of class methods. I have filled an upstream issue for this, but I don't consider this to be hugely significant as they data isn't currently used.
I also took this opportunity to tweak the output format to include some additional fields (although I have no immediate plans to use these fields).