JavaScript vs. PHP vs. Lua

Get help choosing one of these Get news updates about these tools


Favorites

1000

Favorites

410

Favorites

15

Hacker News, Reddit, Stack Overflow Stats

  • 1.43K
  • 4.51K
  • 1.72M
  • 614
  • 8.97K
  • 1.24M
  • -
  • 922
  • 14.8K

GitHub Stats

No public GitHub repository stats available

Description

What is JavaScript?

JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.

What is PHP?

Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.

What is Lua?

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

Want advice about which of these to choose?Ask the StackShare community!

Ask a Question

Pros

Why do developers choose JavaScript?
  • Why do you like JavaScript?

    Why do developers choose PHP?
  • Why do you like PHP?

    Why do developers choose Lua?
    Why do you like Lua?

    Cons

    What are the cons of using JavaScript?
    Downsides of JavaScript?

    What are the cons of using PHP?
    Downsides of PHP?

    What are the cons of using Lua?
    No Cons submitted yet for Lua
    Downsides of Lua?

    Companies

    What companies use JavaScript?
    4213 companies on StackShare use JavaScript
    What companies use PHP?
    8211 companies on StackShare use PHP
    What companies use Lua?
    50 companies on StackShare use Lua

    Integrations

    What tools integrate with JavaScript?
    76 tools on StackShare integrate with JavaScript
    What tools integrate with PHP?
    54 tools on StackShare integrate with PHP
    No integrations listed yet

    What are some alternatives to JavaScript, PHP, and Lua?

    • HTML5 - 5th major revision of the core language of the World Wide Web
    • Python - Python is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, or Java.
    • Java - A concurrent, class-based, object-oriented, language specifically designed to have as few implementation dependencies as possible
    • Ruby - A dynamic, interpreted, open source programming language with a focus on simplicity and productivity

    See all alternatives to JavaScript

    Latest News

    Improved CSS, Extract Vue Component, and More on Jav...
    Intro to Javascript debugging with source maps
    Stimulus: A modest JavaScript framework for the HTML...
    New in Symfony 4.1: Fastest PHP Router
    Beautiful PHP CLI Menus for Laravel Artisan Commands
    PHP Annotated Monthly – February 2018
    Lua and The Open Source Languages Company


    Interest Over Time


    Get help choosing one of these