Trey Anastasio devoted much time this year to studying the work of Jerry Garcia, prepping for his part in the highly anticipated “Fare Thee Well: Celebrating 50 Years of the Grateful Dead” shows in Santa Clara and Chicago.

So, it was only natural to wonder how the guitarist-vocalist might draw upon what he learned when he led Phish — aka, the other greatest jam band of all time — into the Dead”s old stamping ground of the Shoreline Amphitheatre, just a few miles up the road from where the “Fare Thee Well” gigs were played a month prior at Levi”s Stadium.

Unfortunately, Anastasio and his three bandmates — keyboardist Page McConnell, drummer Jon Fishman and bassist Mike Gordon — didn”t perform any Dead tunes during Friday”s offering in Mountain View. Yet, the group did rock the twin-tent-shaped venue in a fashion that Garcia would”ve likely approved of — delivering two sets of wildly adventurous, amazingly eclectic rock music for the “Phans” in the house.

The Vermont quartet opened the show with a careful run through “The Line,” which hails from Phish”s most recent studio album, last year”s “Fuego,” and then got funky with the old favorite “The Moma Dance.”

After delivering pleasant versions of three newish songs — “Kill Devil Falls,” “Yarmouth Road” and “Undermind” — Phish finally kicked the first set into high gear with the anthem “Free,” which gave way to an even-better “Reba” (although the popular whistled part of the song was rather weak this time around).

The band was ready to jam in the second set, stretching out each of the first three songs — “Blaze On,” “Twist” and “Light” — to right around the 15-minute mark. Yet, the more-concise “Joy,” with Anastasio”s exquisite guitar work at the end, was more enjoyable than any of those musical marathons.

Then came a cool “Harry Hood,” which turned out to be a nice showcase for McConnell”s versatile work on the keys. Set two closed with the best song of the night — a roaring “Cavern” — before Phish returned with an encore of the fan favorite “Character Zero.”