@acwoss/

NeedyVirtualCodeview

PHP (Legacy)

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5148939088485218","path":"main.php","file":{"path":"main.php","content":{"asEncoding":{"base64":"ZnVuY3Rpb24gZG9ibGVGb3JlYWNoKCRhcnIpIHsKICAgIGZvcmVhY2goJGFyciBhcyAkaXRlbSkgewogICAgICAgIHlpZWxkICRpdGVtOwogICAgICAgIHlpZWxkICRpdGVtOwogICAgfQp9CgokdGVzdGUgPSBhcnJheSgxLDIsMyw0KTsKJGl0ZXJhdG9yID0gZG9ibGVGb3JlYWNoKCR0ZXN0ZSk7Cgpmb3JlYWNoICgkaXRlcmF0b3IgYXMgJGMpIHsKICAgIGVjaG8gJGM7Cn0="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
function dobleForeach($arr) {
    foreach($arr as $item) {
        yield $item;
        yield $item;
    }
}

$teste = array(1,2,3,4);
$iterator = dobleForeach($teste);

foreach ($iterator as $c) {
    echo $c;
}
PHP 7.0.8 (Legacy: use the following for new features: Command-line PHP: https://repl.it/languages/php_cli PHP Web Server: https://repl.it/languages/php7