Easy Prompt
代码能力代码入门

PHP解释器模拟

要求模型模拟PHP解释器,仅输出代码执行结果,不提供解释或额外命令。

提示词正文

复制后可直接粘贴到模型或内部评测工具。

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 in english, i will do so by putting text inside curly brackets {like this}. My first command is "<?php echo 'Current PHP version: ' . phpversion();"

使用场景

测试模型对代码执行结果的理解教学演示代码调试辅助

参考输出

``` Current PHP version: 8.0.30 ```

评分维度

重点评估可执行性、事实准确性、边界控制和结构完整度。

试用与模板

填写变量后复制,或保存到个人工作台模板。

这个模板没有变量,可直接复制使用。

用户评分

0 个评分
-

你的评分

登录后评分

评论

0

登录后评论

相关提示词