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 link by securely uploading your code to our server. Your code and any uploaded datasets are stored for 90 days and accessible via a short URL. You can include up to 3 datasets (CSV, JSON, or XML files, max 2MB each) in your share.
Important: Never include sensitive information like passwords, API keys, or personal data in your code when sharing. Shared snippets are publicly accessible to anyone with the link.
- Upload - Upload local files (CSV, JSON, XML, PHP, PHAR) to the virtual WASM filesystem. You can upload up to 3 files (max 2MB each). When you share your code, uploaded datasets will be included automatically.
Note: Uploaded files are stored only in your browser's memory and will disappear when you refresh the page, unless you share your code.
- 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