Flow PHP Playground
Flow Playground is an interactive WebAssembly-based environment that runs Flow PHP directly in your browser.
This means that any code you execute in the editor below, runs in your browser, using a version of php compiled to WebAssembly.
Other than that, it's just a regular PHP environment.
Under Development: This playground is still under active development.
If you encounter any bugs or have feedback, we'd love to hear from you! Please report issues on GitHub or reach out to us on Discord.
Action Buttons
- Run - Executes your PHP code in the playground and displays the output below the editor.
- Format - Automatically formats your PHP code using PHP-CS-Fixer rules for consistent code style.
- Share - Generates a shareable URL with your current code so you can share it with others. Your code is compressed and encoded directly into the URL.
Important: Never include sensitive information like passwords or API keys in your code when sharing, as they will be visible in the URL.
- Upload - Upload local files (CSV, JSON, XML, PHP, PHAR) to the virtual WASM filesystem.
Note: Uploaded files are stored only in your browser's memory and will disappear when you refresh the page.
- Reset - Clears your code and resets the playground to its default state.
Workspace
The Workspace panel displays the contents of the /workspace folder from the WebAssembly virtual filesystem. This is where your code and uploaded files are stored during your playground session.
All files in the workspace are stored locally in your browser's memory and are never uploaded to any server.
This means you can safely experiment with real datasets and documents without any privacy concerns.
However, keep in mind that all files will be lost when you refresh the page or close your browser.
bin - this is where we keep scripts used by playground, like for exampel code formatter
data - here you can find sample datasets to play with, reference them as __DIR__ . '/data/orders.csv
tmp - this is where we are going to upload your files
vendor - place for playground dependencies and autoloader
tools - place for playground tools, like flow.phar