mirror of
https://github.com/danog/parser.git
synced 2024-12-04 10:27:58 +01:00
6a6d4d0e5f
Signed-off-by: azjezz <azjezz@protonmail.com>
25 lines
300 B
PHP
25 lines
300 B
PHP
<?php
|
|
|
|
function foo($a) {
|
|
global ${new class() {
|
|
public function __toString() {
|
|
return 'p';
|
|
}
|
|
}};
|
|
|
|
echo $p;
|
|
}
|
|
|
|
$p = 'why!';
|
|
$m = 'foo';
|
|
|
|
class f {
|
|
public static function foo() {
|
|
return foo([]);
|
|
}
|
|
}
|
|
|
|
f::${(function() {
|
|
return 'm';
|
|
})()}();
|