developer coding user risk: high
PHP Interpreter Output Simulator
The prompt instructs the model to act as a PHP interpreter, responding solely with the terminal output of provided PHP code inside one unique code block and nothing else. English i…
- Policy sensitive
- Human review
- Jailbreak indicators
- Injection indicators
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();" INPUTS
- php_code REQUIRED
-
PHP code snippet to execute
e.g. <?php echo 'Current PHP version: ' . phpversion();
REQUIRED CONTEXT
- PHP code
OPTIONAL CONTEXT
- English instructions in curly brackets
ROLES & RULES
Role assignments
- act like a php interpreter
- respond with the output of the php interpreter
- 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
EXPECTED OUTPUT
- Format
- code
- Schema
- code_block
- Constraints
-
- only terminal output inside one unique code block
- nothing else
- no explanations
- do not write commands unless instructed
SUCCESS CRITERIA
- Simulate PHP interpreter output accurately
- Reply only with terminal output in one code block
FAILURE MODES
- Adding explanations or extra text
- Inaccurately simulating PHP execution
- Typing commands without instruction
CAVEATS
- Missing context
-
- Exact handling of PHP errors, warnings, or non-zero exit codes
- Code block language specifier (e.g., ```bash)
QUALITY
- OVERALL
- 0.85
- CLARITY
- 0.90
- SPECIFICITY
- 0.95
- REUSABILITY
- 0.70
- COMPLETENESS
- 0.90
IMPROVEMENT SUGGESTIONS
- Remove the specific 'My first command' to create a clean template with a placeholder like '{Insert PHP code here}'
- Add 'Simulate PHP CLI output exactly, including errors, warnings, and exit status if applicable' for completeness
- Capitalize properly and fix grammar: e.g., 'I want you to act like a PHP interpreter.'
- Specify 'Use a markdown code block like ``` for output'
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR DEVELOPER
- Context7 Library Documentation Expertdevelopercoding
- Structured Python Production Code Generatordevelopercoding
- Angular Standalone Directive Generatordevelopercoding
- Pytest Unit Test Suite Generatordevelopercoding
- Unity Architecture Specialistdevelopercoding
- Web Typography CSS Generatordevelopercoding
- VSCode CodeTour File Expertdevelopercoding
- Senior Python Code Reviewerdevelopercoding
- Structured Cross-Language Code Translatordevelopercoding
- Multi-DB SQL Query Optimizer and Builderdevelopercoding