mirror of
https://github.com/bdnugget/php-wasm.git
synced 2026-11-07 09:07:28 +00:00
14 lines
197 B
PHP
14 lines
197 B
PHP
<?php // {"autorun":true, "persist":false, "single-expression": false, "render-as": "text"}
|
|
|
|
$x = 10;
|
|
|
|
function run(callable $f) {
|
|
$f();
|
|
}
|
|
|
|
run(function () use (&$x) {
|
|
$x = 9;
|
|
});
|
|
|
|
var_dump($x);
|