php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #43978 Compile PHP to native code
Submitted: 2008-01-30 00:08 UTC Modified: 2008-01-30 11:04 UTC
From: zy at adels dot zp dot ua Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.5 OS: Windows/Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zy at adels dot zp dot ua
New email:
PHP Version: OS:

 

 [2008-01-30 00:08 UTC] zy at adels dot zp dot ua
Description:
------------
Why not to compile PHP to a native code. This will dramatically increase its execution speed. PHP developers really need this because it is expensive to use PHP when developing complicated web application.

For example, now I have a project where system needs to make a lot of calculations to make a series of decisions using data from the database containing several millions of records.

One of its components has a following statistics:
[Debug] Time: 9.511
[Debug] Queries: 6135
[Debug] Query time: 3.11026215553

This means that it took 3 seconds to make more than 6 thousands of not simple queries and 6.5 seconds to process them using PHP. Native code (or even .NET code which compiles to native code) performs such kind of tasks faster in order of magnitude.

We really need a native code compiler (at least for x86 Linux and Windows). If it was possible to create a compiler for Visual Basic 5 and 6 then it is possible to create one for PHP.

Expected result:
----------------
faster execution


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-30 11:04 UTC] johannes@php.net
PHP won't directly work without at least the help from a runtime library where most of the time is spent. Feel free to implement it, I think no dev currently sees benefit in this and therefore won't implement it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 19:01:29 2024 UTC