psysh

Interactive PHP debugger and REPL for development and testing

brewmacoslinux
Try with needOr install directly
Source

About

Runtime developer console, interactive debugger and REPL for PHP

Commands

psysh

Examples

Start an interactive PHP shell$ psysh
Execute PHP code interactively and test functions$ psysh >>> echo 'Hello World'; >>> $x = [1, 2, 3]; >>> array_sum($x);
Load and debug a PHP file in the REPL$ psysh /path/to/script.php