php5.4 syntax; small fixes; added benchmark test