Hi there,
There may be plugins that can help solve this problem. However, it will most likely be limited as building an online compiler is quite complex and it’d be rather difficult to integrate. Here are some plugins that may help accomplish what you’re looking for. I’ll attach the link here.
Most of the online compilers you see will allow users to enter code and the code is given as input to a compiler/interpreter installed on the server. The compiled program will then be executed and the output will be captured. From there, the output will be passed to the web server as a response. Most WordPress plugins cannot account for the fact that you have the server set up properly in order to do this task, so this is why there aren’t many plugins that offer this.
Another issue lies with security, as you’re essentially allowing anyone to enter their own code. You will have to handle security for all of the languages you’re trying to implement, which can lead to issues with WordPress plugins as they can’t account for every edge case.
Regards,
Tyler