I want to calculate the time complexity of some code I have written that calls built-in PHP functions such as substr_count()
, trim()
etc. Because I didn't write these functions myself I don't know the complexity of them so I can't calculate the complexity of my own code as a result. Is there a way that you can either:
- Retrieve the code for the built-in methods
- Retrieve the complexcity for the built-in methods
Or is the only way of doing the calculation to run the code through a tool that calculates the complexity for me?
I had a look at this page which didn't help too much