我想知道PHP何时释放用于变量的内存
例如
function foo(){
$foo = 'data';
return $foo; // <- is the memory space for `$foo` emptied at this point?
}
Run Code Online (Sandbox Code Playgroud)
是慢于:
function foo(){
return 'data';
}
Run Code Online (Sandbox Code Playgroud)
?