Blank and Berez were definitely thinking about p-machines when they designed the Z machine, and there is a hat tip in the 1980 Creative Computing article describing its inner workings.
19 karma · joined February 1, 2022
It also contains a philosopher related pun which is either one of the best or worst I've ever heard. As great puns should be like that, it's probably the latter.
The BBC production could have been using a later edition (possibly based on the First Folio from 1623) which censors all the references to God and other blasphemy like "zounds", which is short for "God's wounds". You where almost certainly following along with an edition where the editor had restored the original published text from before the act was created.