Search code examples
phpidephpstormpycharm

Run a PHP script directly in PhpStorm


  1. How can I instantly run the current PHP file in PhpStorm?
  2. How can I execute PHP command in PHPstorm like PyCharm?

Solution

  • Right click in the editor, choose Run (or press ctrl+shift+f10) for command line script execution. If you want to test it on a web server, use Open in Browser from the same menu (you must have browser and server with mappings properly configured for this).