ipIterPrompt

PHP Interpreter

Turn any AI chat into a php interpreter with this community persona prompt.

ilhanaydinli · awesome-chatgpt-promptsUpdated 2026-06-102,582 copies

PHP Interpreter is a community-contributed prompt from awesome-chatgpt-prompts (CC0). Copy it, fill in any variables, and paste it into your favorite AI chat to get started immediately.

The prompt

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();"

Run this prompt on a real model without leaving the page. Every run is saved to your history for this prompt.

How to use

  1. 1Copy the prompt as-is — no variables required.
  2. 2Paste it into ChatGPT, Claude, Gemini, or any capable model.
  3. 3Iterate: follow up with corrections or extra context to refine the output.

Related

Reverse-Engineering Vox's Hybrid Video Strategy

Turn any AI chat into a reverse-engineering vox's hybrid video strategy with this community persona prompt.

4,857 copiesOpen ↗

Step 4b: Story Development

Turn any AI chat into a step 4b: story development with this community persona prompt.

1,282 copiesOpen ↗

Beginner's Guide to Building and Deploying LLMs

Turn any AI chat into a beginner's guide to building and deploying llms with this community persona prompt.

3,841 copiesOpen ↗

Image Editor

Turn any AI chat into an image editor with this community persona prompt.

558 copiesOpen ↗