Can PHP and C++ pass data between each other?

后端 未结 11 1786
悲哀的现实
悲哀的现实 2020-12-14 20:36

I have a lot of mathematical calculations in my PHP script, which can be quite slow at times. I\'m wondering if it\'s possible to pass data from PHP to C++, do the calculati

11条回答
  •  没有蜡笔的小新
    2020-12-14 21:06

    You could always compile your code using Facebooks HipHop.

    It will transform your php into C++ and then compile that to machine code using g++.

    https://github.com/facebook/hiphop-php/wiki/

    https://github.com/facebook/hiphop-php/wiki/Running-HipHop

    I've never personally used it on a real project but I've heard great things.

提交回复
热议问题