Source

dtrace scripts / php / zend_execute_stack.php

Full commit
#!/usr/sbin/dtrace -s

#pragma D option flowindent
pid$target::execute:entry
{
    inphp=1;
}

pid$target::zend*:entry
/inphp/
{
}

pid$target::zend*:return
/inphp/
{
}