新建编译系统

{ 
    "cmd": ["php", "$file"],
    "file_regex": "php$", 
    "selector": "source.php" 
}

命名为php.sublime-build 保存到默认路径

Ctrl + B 执行脚本

相关文章: