How does this work considering PHP is heavily made up of code from Zend (which was an Israeli company) Can Iranian-built websites not use PHP?
There is no rule of law in dictatorship so your question makes no sense. The proper question would be "What are my chances of being repressed given my connections to the opposion|ruling elites?".
What you do is stay far from Sauron's eye. And if you're under Sauron's eye, you make sure you look loyal.