Press Run to see your HTML. Local links navigate within this preview.
ReadyReady. Press Run. Runtime loads only when needed.
How to use this Laravel compiler
Edit routes/web.php and Run to see a web page. Click “Open my API” in the preview to call routes/api.php. API routes automatically receive the /api prefix. Use API / response to test POST with a JSON body. composer.json shows the bundled dependencies; editing it does not install packages.
Code runs on your device in an isolated WebAssembly worker. Network is blocked. 10-second execution limit. First use downloads the runtime; subsequent runs in this tab reuse it. Save local stores the project on this device; Export downloads all files.
Laravel online playground
About this Laravel compiler
Learn Laravel without a local setup. This playground runs Laravel 13 with its Composer dependencies pre-bundled on PHP in WebAssembly. Edit routes, return views or JSON, and send requests to see real status codes and validation responses.
What you can try
- Define web and API routes and return JSON responses
- Test request validation and 422 error bodies
- See how the HTTP kernel handles each request
- Export your files and continue in a full local Laravel project
Laravel exercises and challenges · Coding practice · All online compilers
Frequently asked questions
Is this a full Laravel installation?
It is the real framework with bundled dependencies, running in a sandbox. It is meant for learning routes, validation and responses, not for hosting an application.
Can I install other Composer packages?
Not here. Editing composer.json does not install anything. Export the project and use Composer locally for extra packages.
Does it include a database?
No database is connected. Practise routing, controllers-style logic and validation; use a local project for Eloquent with a real database.
Does it need an account?
No account is needed. The runtime downloads the first time you press Run and is reused afterwards.