for PETSc v3.18.5
C codes (Chapters 1--12) were tested with PETSc v3.18.5 (commit 01a2522431e). Should work for PETSc tags v3.18.4|.3|.2|.1|.0 also.
Python codes (Chapters 13--14) were tested with Firedrake commit b195b5c9, downloaded 4 March 2023.
Gmsh version 4.9.3 (and 4.9.0)
Test machine: thelio massive ubuntu 22.04.2 LTS