🆚 PHP vs. Ruby

Compare technologies based on real-world usage data *

Type

Programming language
Programming language

About

PHP is a widely used free server-side scripting language designed for building dynamic web applications and powering content-driven websites.

Originally meaning "Personal Home Page", it now uses the recursive acronym "PHP: Hypertext Preprocessor" and is tightly integrated with HTML, databases, and web servers.

Since version 7, PHP has evolved substantially, introducing major performance gains that roughly doubled execution speed compared to PHP 5 and reduced memory usage. PHP 8 added features such as just-in-time compilation, type system improvements, attributes, enums, readonly properties, and fibers.

An interpreted, object-oriented, open-source programming language often used for web development.

Website

Categories

Programming Languages › Rank #2
Programming Languages › Rank #5
Platforms › Rank #1

Popularity

Determined by the number of sites using each technology.

The PHP programming language is 20 times more popular than Ruby.
Total websites

Market share

Programming Languages

Popularity by country

Determined by the number of sites detected from each country.

PHP is more popular than Ruby in all countries.
United States
Germany
United Kingdom
Japan
France
Spain
Italy
Netherlands
Russia
Australia

Awards

Popularity by domain category

Determined by the number of sites in each category.

PHP is more popular among sites focused on business, marketing and merchandising, and online shopping, while Ruby is more commonly used on fashion and beauty sites.
Business
Marketing/Merchandising
Online Shopping
Blogs/Wiki
Education/Reference
Internet Services
Entertainment
Health
Non-Profit/Advocacy/NGO
General News

Top sites

Top-ranked sites that use these technologies.

Name
Rank
p**nhub.com
#26
#39
View more ➝
Name
Rank
#76
View more ➝

See also

* According to recent studies, many of online reviews are fake.
When making your decision, it is better to rely on data that cannot be falsified.
Our service evaluates the popularity of technologies by the number of websites using them.

Statistics were last calculated on .
For details, see our methodology and disclaimer.