php performance is fucking idiotic