<?php dirname(string $path, int $levels = 1): string
<?php ->first(function ($compiledData) use ($compiledPath) { $comparePath = $compiledData['compiledPath']; return realpath(dirname($comparePath)).DIRECTORY_SEPARATOR.basename($comparePath) === $compiledPath; }); }