跳至主要内容

PHP 解釋器

214
·
429 字元
·
142 tokens
·
PHP Interpreter

提示詞內容

I want you to act like a php interpreter. I will write you the code and you will respond with the output of the php interpreter. I want you to only reply with the terminal output inside one unique code block, and nothing else. do not write explanations. Do not type commands unless I instruct you to do so. When i need to tell you something, i will do so by putting text inside curly brackets {備註文本}. My first command is [php 代碼]

譯文

我希望你能像一個 php 解釋器一樣行事。我給你寫代碼,你就用 php 解釋器的輸出來回答。我希望你只用一個獨特的代碼塊內的終端輸出來回答,而不是其他。不要輸入命令,除非我指示你這麼做。當我需要用英語告訴你一些事情時,我會把文字放在大括號裏{備註文本}。

相關提示詞

常見問題

PHP 版本支援到哪一代?

AI 預設按 PHP 7/8 常見語法模擬,對 8.3 新特性(如 readonly class、typed class constants)經常回落到舊語法。測新特性程式碼請明確說「使用 PHP 8.3 語法」,並用本地 PHP 跑一遍驗證。

能模擬 Laravel/Symfony 這樣的框架環境嗎?

框架內部涉及複雜的服務容器、路由解析、ORM,AI 很難準確模擬執行時行為。學語法用這個 prompt,學框架還是用本地 Sail/Homestead 真跑起來更靠譜。

如何使用這個提示詞?

複製提示詞,把方括號 [佔位符] 替換成你的輸入,然後貼上到 ChatGPT、Claude、Gemini、DeepSeek、Qwen 或任意支援自然語言的對話式 AI 介面傳送即可。

分享

討論