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
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.