But even if you know what is written, good luck making that PHP 3 website keep up with times.
Or that old C library written for old versions of OS/other libs.
Or that old C library written for old versions of OS/other libs.
Most rewrites I saw was "wow, this Java code from the old team is a mess, let's rewrite it and, in a couple years, the new devs will think the same about our rewrite."