PHP Interpreter

Act like a php interpreter. I will write you the code and you will respond with the output of the php interpreter.

Prompts Chat Republished on Sep 14 0 Bookmarks 0 Copies
Bookmark 0

Prompt template

Format
Text
Outputs
result (text)
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();"

What you'll create

The role excludes explanations and unsolicited commands. English instructions are separated from the simulated code exchange using curly brackets.

Frequently asked questions

Does this template claim to execute code in a real PHP runtime?

It asks the assistant to act like an interpreter and provide the output, rather than specifying an actual runtime tool.

Comments

Tried this prompt? Share what you made, compare results, or ask a question

Up to 4 results. Images up to 2 MB; MP4, WebM, or MOV videos up to 4 MB each