🆚 PHP vs. Ruby on Rails

Compare technologies based on real-world usage data *

Type

Programming language
Backend framework

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.

Ruby on Rails is a full-stack framework that includes everything needed to build database-driven web applications using the Model-View-Controller (MVC) pattern.

It emphasizes a standardized folder structure and naming, follows DRY ("don't repeat yourself") and the "convention over configuration" principles, provides an Active Record ORM, a built-in asset pipeline for CSS and JavaScript preprocessing, and an integrated testing framework.

Headquarters

Chicago, Illinois, United States

Website

Pricing

Free ✔️Open source

Categories

Programming Languages › Rank #2
Platforms › Rank #1
Platforms › Rank #4
Backend Frameworks › Rank #2

Popularity

Determined by the number of sites using each technology.

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

Market share

Platforms

Popularity by country

Determined by the number of sites detected from each country.

PHP is more popular than Ruby on Rails 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 on Rails is more commonly used on fashion and beauty, and sports 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.