The problem with the plugin for sublime text is sublimeREPL .

When you run Tools\sublimeREPL\PHP , the interpreter is turned on, and the commands work there.

But if you transfer the file - Tools\sublimeREPL\Eval in REPL - an error is Tools\sublimeREPL\Eval in REPL

Cannot find REPL for 'php'.

File name index.php .

And for pythona everything works.

Tell me how to transfer files?

    1 answer 1

    It's simple: Open "Tools - Build System - New Build System ..." Delete everything and insert 3 lines

     { "cmd": ["C:/php/php.exe", "$file"] } 

    Instead of "C: /php/php.exe" there may be another path to the compiler. You save as PHP. Now you open your PHP file, choose in "Tools - Build System - PHP" and by pressing "Ctrl + B" or "Tools - Build" in the bottom window you get the output.