parser for building a network diagram of method dependencies

Wednesday: Linux, PHP, Python

Is there a code parser (utility, script) to visualize the class structure (in the form of a network diagram) in object-oriented programming? I have a file module Import.php consists of one class with about 50 methods inside and I need to get a network diagram of the relationships of these methods.

Here's a sample of what should happen: enter image description here