It was technically motivated:
https://developers.facebook.com/blog/post/2010/02/02/hiphop-...
https://github.com/facebook/hiphop-php/wiki
https://www.facebook.com/notes/facebook-engineering/folly-th...
Edit: From the 1st link
"[...] I started my first piece of code transforming PHP into C++. The languages are fairly similar syntactically and C++ drastically outperforms PHP when it comes to both CPU and memory usage."