I want to define a function and unset it after its use just like we do with variables.
$a = \'something\'; unset($a); echo $a; // outputs nothing
runkit_function_remove — Remove a function definition http://php.net/manual/en/function.runkit-function-remove.php