Checking PHP compatibilities prior to upgrading PHP versions