home/roleplay/php-interpreter

PHP Interpreter

GPTClaudeDeepSeek··1,085 copies·updated 2026-07-13
php-interpreter.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();"

fill the variables

This prompt has 1 variable. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{like this}
Unlock with Pro →

when to use it

Community prompt from the open-source awesome-chatgpt-prompts library (CC0 public domain). A proven "PHP Interpreter" starting point — swap in your own specifics and constraints. Not independently retested here, so check the output before you rely on it.

tags

roleplaycommunitydeveloper

source

awesome-chatgpt-prompts · CC0 1.0 (public domain)