로컬 실행 환경 없이 PHP 소스 코드의 터미널 실행 결과만을 즉시 검증할 때 사용합니다.
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();"당신이 PHP 인터프리터처럼 동작하길 원합니다. 내가 코드를 작성하면 PHP 인터프리터의 실행 결과만 응답해 주세요. 설명 없이 단 하나의 코드 블록 안에 터미널 출력 결과만 반환해야 합니다. 지시하지 않은 명령어는 입력하지 마세요. 질문이나 지시사항은 중괄호 {이렇게} 안에 넣어 전달하겠습니다. 나의 첫 번째 명령은 "<?php echo 'Current PHP version: ' . phpversion();" 입니다.출처 · prompts.chat · PHP Interpreter — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.
Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).
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();"Current PHP version: 8.2.12
mopick 개선안
원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.
AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님
AI 역할레슨 01 배우기 ›
원문 · 없음AI 에게 맡길 역할이 정해져 있지 않아 답의 관점 · 수준이 그때그때 달라질 수 있었습니다.
개선 · 역할을 정함Act as a strict PHP [8.x] interpreter. Execute the provided code and return ONLY the exact
입력 칸레슨 05 배우기 ›
원문 · 1개바꿔 넣을 자리가 일부만 표시돼 있어 쓸 때마다 원문을 고쳐야 했습니다.
개선 · 3개[8.x] · [<?php echo 'Current PHP version: ' . phpversion(); ?>]
작업 순서레슨 07 배우기 ›
원문 · 없음작업 순서가 정해져 있지 않아 AI 가 순서를 스스로 정해야 했습니다.
개선 · 3단계
이 개선안에 쓰인 기법 — 프롬프트 클래스에서 배우기
원문
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();"개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요
Act as a strict PHP [8.x] interpreter. Execute the provided code and return ONLY the exact terminal output inside a single markdown code block (```). Do not include any explanations, greetings, or text outside the code block. Rules: 1. If the code contains syntax or runtime errors, output the standard PHP error messages inside the code block. 2. Do not run unrequested commands. 3. Text wrapped in curly brackets {like this} represents direct instructions in English, not PHP code. Initial input: "[<?php echo 'Current PHP version: ' . phpversion(); ?>]"