# PHP language comparisons

[Original page](https://codewithphp.com/compare/)

> Compare PHP with Python, JavaScript, Go, TypeScript, Rust and more. See where each fits, how it deploys and how the same code looks side by side.

Choosing a language for a website, an API or a mobile app? These guides compare where PHP fits, what each option needs to run and how the same small task looks in code. Pick the comparison closest to what you want to build.

| Comparison | What it helps you decide |
| --- | --- |
| [PHP vs Python](/compare/php-vs-python/) | Which ecosystem to reach for when a project mixes web features and data work. |
| [PHP vs JavaScript](/compare/php-vs-javascript/) | Which code belongs in the browser and which belongs on the server. |
| [PHP vs HTML](/compare/php-vs-html/) | When a static page is enough and when the server needs to generate the response. |
| [PHP vs Node.js](/compare/php-vs-nodejs/) | How two backend runtimes handle HTTP, dependencies and deployment. |
| [PHP vs Java](/compare/php-vs-java/) | When a JVM backend makes sense and what changes when you move projects between the two. |
| [PHP vs Go](/compare/php-vs-go/) | How to choose between a PHP web stack and a compiled service or command-line tool. |
| [PHP vs Swift](/compare/php-vs-swift/) | Where to put application logic when an Apple app needs a web API. |
| [PHP vs Perl](/compare/php-vs-perl/) | Whether to keep a text-processing script in Perl or bring it into a PHP project. |
| [PHP vs TypeScript](/compare/php-vs-typescript/) | How compile-time types and runtime validation affect a web application. |
| [PHP vs C#](/compare/php-vs-csharp/) | How PHP and .NET differ when building and deploying a server application. |
| [PHP vs Ruby](/compare/php-vs-ruby/) | How framework conventions and collections translate between the two ecosystems. |
| [PHP vs SQL](/compare/php-vs-sql/) | Which logic belongs in a database query and which belongs in the application. |
| [PHP vs Rust](/compare/php-vs-rust/) | When ownership, a compiled tool and predictable resource use matter to a workload. |
| [PHP vs CSS](/compare/php-vs-css/) | How generated markup and browser styling work together. |
| [PHP vs C++](/compare/php-vs-cpp/) | When native libraries and platform builds make sense for part of a PHP application. |
| [PHP vs Kotlin](/compare/php-vs-kotlin/) | How an Android client and PHP API can agree on nullable data. |
| [PHP vs Scala](/compare/php-vs-scala/) | Where typed JVM data processing fits alongside a PHP application. |
| [PHP vs Lua](/compare/php-vs-lua/) | How web-facing code can share rules with an application that embeds Lua. |
| [PHP vs Elixir](/compare/php-vs-elixir/) | How processes, background jobs and long-lived connections affect your design. |
| [PHP vs Dart](/compare/php-vs-dart/) | How a Flutter client and PHP API split responsibility for loading and displaying data. |

[Start learning PHP from scratch](/series/php-basics/) or [browse all PHP courses](/series/).
