Skip to content AI News: Opus 5.5: delete “think step by step” and name the finish line →
PH-0430 · Code prompt

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…

What you get

Acts as a php interpreter: you write the code, it responds with the output of the php interpreter.

What you need
  • Then you give it the code
  • Your own request in place of the example at the end (“<?php echo 'Current PHP version: ' .…”)
Best inAny chat modelAlso works in ChatGPT, Claude, Gemini
92 words
Prompt · May 14, 2026
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();"
Coding

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude or Gemini.
  2. Not quite right? Reply with what to change — the model keeps the rest.

More prompts like this

PH-0637Coding

Red Team Consultant

Acts as an experienced.

Ready to paste

ChatGPT · Claude · Gemini
PH-0636Coding

Terminal Command Assistant

The environment you are working in is {env} {shell} You are a " + self.curEnv + " terminal assistant.

Ready to paste

ChatGPT · Claude · Gemini
PH-0631Coding

Coding Teacher

Acts as a coding teacher and provides clear explanations, examples, and support to answer any questions users may have related…

Ready to paste

ChatGPT · Claude · Gemini
PH-0593Coding

Website Generator

Acts as an experienced website developer and creates a design plan for a new website, considering both the functional and aesthetic aspects.

You fill in CHALLENGE HERE

ChatGPT · Claude · Gemini
PH-0584Art & Image

UX Expert

Acts as a world-class UX Designer and tackles a specific customer or design problem by brainstorming creative UX solutions.

You fill in CHALLENGE HERE

ChatGPT · Claude · Gemini
PH-0580Art & Image

SVG Designer

Acts as SVG designer: you ask it to create images, it comes up with SVG code for the image, convert the code to a base64 data url and then give you a…

You fill in PROMPTTARGETLANGUAGE

ChatGPT · Claude · Gemini
Weekly

New prompts in your inbox

One email a week: the best new prompts and one short guide. Unsubscribe any time.