2
define new function in PHP sources ( pure C )
compile you new PHP version with the defined function
call the new function, which was defined in PHP sources by you
PS
On this way you are able to make PHP able work with __asm { } insertions/add some kernel code , if you want it...