stackstash

PHP vs Python

PHP and Python are free.

PHP logo: The language behind WordPress and a huge share of the web.
PHP logo: The language behind WordPress and a huge share of the web.

PHP

Free

The language behind WordPress and a huge share of the web.

Try it

Pros of PHP

  • Cheap hosting is everywhere

  • Huge library of existing apps

  • Simple to get a page online

Cons of PHP

  • Older codebases can be messy

  • Less common in new startup stacks

Python logo: A readable language used for scripts, APIs, and data work.
Python logo: A readable language used for scripts, APIs, and data work.

Python

Free

A readable language used for scripts, APIs, and data work.

Try it

Pros of Python

  • Short scripts stay short

  • The scientific and data libraries are hard to match

  • A lot of automation and API examples are in Python

Cons of Python

  • Packaging and virtual environments still trip people up

  • It is slower than Go or Java for a hot service