I am trying to make a website where people can compile and run their code online, thus we need to find an interactive way for users to send instructions. Actually, what first comes to mind is exec() or system(), but when users want to input sth, this way won’t work. So we have to use proc_open(). For instance, the following