Demo
Use the dialog above to launch a 100% local, user-editable site with a given framework.
Editing files
The Code
Editor opens a saveable untitled document when no file is
selected. Use File to open an existing path, or
Save to choose a destination. PHP and the
debugger see saved files; draft recovery keeps unsaved edits
separately. Files under /persist and
/config survive worker restarts. The editor
supports file/folder operations, uploads, downloads, ZIP
transfers, quick open, and checked conflict handling.
The VS Code example uses the same demo filesystem through File Bus. Directory expansion requests names and types together when supported by both the host and runtime.
The home page lists the demos; More… includes Query Workbench and PHP-CLI Preview. Interactive line input remains available in the CLI and debugger; the standalone Waitline test link has been removed from that menu.
PHP Scripts
Use the editor below to write PHP scripts that run right in the page:
SDL Cube and SDL Sine
The current demos load PhpSdl from the
standalone php-sdl-wasm package for PHP 8.0–8.5.
Select PHP + SDL in the
Runtime control, or choose either SDL demo to
select it automatically. Ordinary PHP uses
php-wasm; neither runtime package depends on the
other. Saved links using variant=_sdl still select
SDL, while new links use runtime=sdl. For a local
source build, make demo-versions prepares all six
SDL runtime versions and the ordinary demo runtimes.
SDL Cube runs alongside SDL
Sine. The cube uses the sean-icon-32
pixel-art texture without interpolation, a TrueType overlay,
keyboard controls, MP3 music, and WAV effects. The track is
Unreal Superhero 3 by Kenët and
rez, as credited in its ID3 tags. It requires WebGL2.
Click Enable audio, then focus the canvas:
arrows/WASD rotate, Space pauses, R resets, M mutes, and Escape
stops. Run restarts; Refresh
releases resources. The cube fills the preview and adjusts its
perspective when it is resized. Edited source is shared in the
URL’s #code= fragment, keeping it out of HTTP
requests; existing ?code= links still work.
The embedded example above runs the cube; choose SDL Sine from its Demo menu for the smaller example. See SDL and OpenGL for the cube’s source, runtime and asset setup, build flags, and error recovery.