Run Phan in your browser (Requires Firefox/Chrome and at least 4GB of free RAM)].
- This uses emscripten to allow analyzing (or running) PHP scripts entirely in your browser.
PHP Version: 8.0.0
Phan Version: 4.0.0-RC2
This is based on oraoto/pib (PHP In Browser)
There is also a demo for PHP 8.0.0-dev
TODO: would these instructions work for phan/demo?
The quickest way to build PIB is by using Docker:
docker run --rm -v $(pwd):/src trzeci/emscripten:sdk-incoming-64bit bash -c `apt-get update && apt-get install -y autoconf; build.sh`
Steps:
- Setup emsdk (>= 2.0.9), see Installation Instructions
- Run
bash build.sh
(Installautoconf
if needed)
This requires that a web server be running and serve static files.
python3 -m http.server --bind 127.0.0.1 8080
(from the root directory of phan-demo) is one way to do this.
Then, open http://localhost:8080/
This application is based on PHP in Browser (oraoto/pib).
The Web UI is based on Rust Playground. This uses the ace editor.