PHP Interpreter: Test Code in Chat Instantly

Description

What does this prompt do?

This prompt transforms an AI assistant into a fully functional PHP interpreter. You write code — you get the exact output, as if running it in a terminal.

Who is this for?

  • PHP Developers — for quick code testing
  • Beginners — for hands-on PHP learning
  • Bug hunters — for hypothesis testing without setting up an environment

Benefits

  • Get only clean output in a code block
  • No unnecessary explanations or comments
  • Ability to communicate in English via curly braces {like this}
  • Perfect for quick code snippet verification
>_ 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();"
Categories:
Tags:
Models:
Any
Output format: