I think this is a part of work that now allows you to run System 7 on machines as new as a Mac Mini G4, which was discussed more broadly in https://news.ycombinator.com/item?id=46084956
> The patch script is written in PHP, just run php patch.php "path/to/Mac OS ROM.hqx.src" with your build of vasmm68k_mot in the same directory.
It's 100% valid, but I always forget that PHP is a general-purpose scripting language:) And I assume it's a patch script and not just patch(1) because it seems to be interactively looking at the ROM to find the right things to modify?