Aer Interpreter Source
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
409 B

class Program {
function main() {
$this->b($this->a('First A'), $this->a('Second A'), $this->a('Third A'));
}
function a(string $p) {
mixed $backtrace = debug_backtrace();
if(isset($backtrace[0]['args'])) {
var_export($backtrace[0]['args']);
} else {
print("Cannot aquire arguments\n");
}
return $p;
}
function b(string $p1, string $p2, string $p3) {
print("$p1, $p2, $p3");
}
}