What makes PHP slower than Java or C#?

后端 未结 8 838
耶瑟儿~
耶瑟儿~ 2020-12-14 16:10

This is something I\'ve always wondered: Why is PHP slower than Java or C#, if all 3 of these languages get compiled down to bytecode and then executed from there? I know th

8条回答
  •  青春惊慌失措
    2020-12-14 16:38

    There is no way an interpreted language can be faster than a compiled language or even a JIT language under trivial conditions.

    Unless your test program consists of printing out "Hello Worlds" if you are concerned about speed, stick with C# or Java.

提交回复
热议问题