The Problem: Executing Server-Side PHP in the Browser
One of the tools I wanted to build for ShubhamLabs was a browser-based coding playground where developers could write and experiment with HTML, CSS, JavaScript, and PHP in one place.
HTML, CSS, and JavaScript were relatively straightforward because the browser already provides an environment to work with them.
PHP was different. PHP is a server-side language and normally needs a PHP runtime to execute the code. The obvious implementation would have been to send the user's PHP code to my server, execute it there, and return the output to the browser.
For me, that immediately raised two concerns: Privacy and Security.
"Why execute the user's PHP on my server at all if I can execute it in their browser?"