playground.wordpress.net
WordPress running in your browser for learning, testing, and developing with WordPress!
First seen 2026-09-07 · Last seen 2026-09-14 · Source: webmcp.com
Answer 1 · Act 13 · Transact 2 · Score: Not yet scored
Tool inspector
playground_execute_php
Run arbitrary PHP code in WordPress Playground and return the output. WordPress is NOT bootstrapped automatically. To use WordPress functions, start your code with: require("/wordpress/wp-load.php"); Always include the opening <?php tag. The response JSON contains three fields: - "text": stdout output - "errors": PHP warnings, notices, and fatal error messages from stderr - "exitCode": 0 on success, non-zero on fatal error Check both "errors" and "exitCode" to determine whether the call succeeded. WARNING: output is returned in full with no truncation — avoid queries that produce unbounded output (e.g. SELECT * without LIMIT). Keep output under 50 KB to avoid filling the context window.
Input schema
| Property | Type | Required | Description |
|---|---|---|---|
code |
string | yes | PHP code to execute. Example: "<?php echo get_bloginfo('name');" |
Raw JSON schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "PHP code to execute. Example:\n\t\t\t\t\t\"<?php echo get_bloginfo('name');\""
}
},
"required": [
"code"
]
}
Similar websites
neohack.dev
An inviting pixel-art doorway into NetHack. Explore at your own pace, one thoughtful turn at a time.
persona-chat.dev
Persona is an open-source, themeable AI chat widget you can add to any website in minutes. SSE streaming, agent loops, tool use, and style isolation: zero frame…
demos.telerik.com
Explore and test a wide range of Telerik UI for Blazor examples, demos, and sample applications.
bandarra.me
WebMCP-enabled text editor with imperative tools for document I/O, workspace CRUD, on-device translation, and sub-agent (planner / researcher / writer / reviewe…