Flowing
Dev
更多工具
添加到项目
项目模式
搜索工具和命令…
⌘ K
简体中文
PHP Playground
免费
在浏览器中使用编译到 WebAssembly 的真实 PHP 解释器来运行 PHP 脚本。 你的代码在浏览器里独立的沙盒中运行,绝不会被上传。
基础知识
index.php
1
2
3
4
5
6
7
8
<?php $langs = ["PHP" => 1995, "JavaScript" => 1995, "Python" => 1991]; arsort($langs); foreach ($langs as $name => $year) { echo str_pad($name, 12) . " → " . (date("Y") - $year) . " years\n"; } echo "PHP " . PHP_VERSION . "\n";
运行
按 Ctrl/⌘ + Enter 运行
运行时: php-wasm
控制台
点击“运行”来执行你的代码。