In short, no.
PHP scripts are compiled into bytecode specific to a particular virtual machine (assuming Zend Engine here). Thus, you cannot mix native and PHP code with a standard distribution.
However, it is possible to write C extensions for PHP in which you can use the built-in assembly.
source share