<?php
	function f2f($string){
		$list = get_defined_functions();
		foreach($list["internal"] as $f)
			if(preg_match('#(=|\s|\()+\b'.$f.'\b\s*\(#i', $string))
				$ret[] = $f;
			
		return $ret;
	}
	
	print_r(f2f(file_get_contents("test.php")));
?>
Giriş düzeyinde bu şekilde bir function yazılabilir. Ayrıca token_get_all yardımcı olabilir.