A runtime developer console, interactive debugger and REPL for PHP.
Download directly:
wget https://psysh.org/psysh chmod +x psysh ./psysh
Or install via Composer:
composer require psy/psysh
Or install globally:
composer global require psy/psysh
doc command for inline PHP documentationshow command to view source code for any function, class, or methodeval(\Psy\sh()) anywhere in your codels; explore any class, object, or namespacewtf to see itPsySH is created and maintained by Justin Hileman. It is open source under the MIT License.
This interactive version runs PHP in your browser using PHP-WASM and xterm.js.