PHP Performance Benchmarks

This email was forwarded to me and I found it very valuable.

It is a list of PHP performance Benchmarks performed against PHP 5.2.13

Benchmarks include:

  • Checking if a String is empty
  • Comparing two Strings
  • Checking if a String contains another String
  • Checking if a String starts with another String
  • Check if a String ends with another String
  • Replace a String inside another String
  • Trim Characters from the beginning and end of a String
  • Split a String into an Array
  • Loop a numerical indexed Array of Strings
  • get Elements from an Array
  • Implode an Array
  • Single vs Double Quotes
Posted in , .

Leave a Reply

Your email address will not be published. Required fields are marked *