Skip to content
Advertisement

Tag: optimization

Which is faster php date functions or carbon?

Carbon is simple PHP API extension for DateTime. I want to know that we can use datetime functions using by installing carbon via composer. which is faster php datetime functions or carbon ? Answer I did some testing regarding your comment comparing DateTime to Carbon functions: Calling Carbon::now() vs. new DateTime() 100.000 times: Results from 5 runs (meaning 5x 100.000

Advertisement