$test = 'hello'; $closure = closure(get_defined_vars(), '$a = FALSE')->scope(' if(!$a) echo $test; return; ')->call();