Is Object-Oriented Programming in Interpreted languages (i.e, PHP) efficient?

interpreted-language, oop, performance, php

Solution

The standard is to favor readable code over efficiency, because most of the time "more efficient code" runs faster by a single millisecond. Object-oriented programming is generally more readable than a non-object-oriented counterpart.

See also this question: Why are so many web languages interpreted rather than compiled?. The majority of a page's load time is spent sending and receiving data or doing database things.

Problem

I was just wondering whether it would be worth sticking to non-OOP code for the sake of speed. Also, In commercial web-applications, is OOP generally used or avoided? Which is the standard? Many Thanks, Ed

Original source

Related problems