Opcodes
PHP Manual

TICKS

PHP code

<?php
/*
 * 
 * opcode number: 105
 */
// A function that records the time when it is called
function profile()
{
   echo 
"profile function is called\n";
}

// Set up a tick handler
register_tick_function("profile");

// Initialize the function before the declare block
profile();

// Run a block of code, throw a tick every 2nd statement
declare(ticks=2) {
   for (
$x 0$x 10; ++$x) {
         echo 
"hello world\n";
   }
}
?>

PHP opcodes

Function name: (null)

Compiled variables: !0=$x

line#op fetchextreturn operands
70 NOPВ  В В  В 
131 SEND_VALВ  В В  'profile'
В 2 DO_FCALLВ  1В  'register_tick_function'
163 DO_FCALLВ  0В  'profile'
204 ASSIGNВ  В В  !0,0
В 5 IS_SMALLERВ  В ~3 !0,10
В 6 JMPZNZВ  9В  ~3,->13
В 7 PRE_INCВ  В В  !0
В 8 JMPВ  В В  ->5
219 ECHOВ  В В  'hello+world%0A'
В 10 TICKSВ  В В  2
2211 TICKSВ  В В  2
В 12 JMPВ  В В  ->7
В 13 TICKSВ  В В  2
2314 TICKSВ  В В  2
2415 RETURNВ  В В  1

Function name: profile

Compiled variables: none

line#op fetchextreturn operands
90 ECHOВ  В В  'profile+function+is+called%0A'
101 RETURNВ  В В  null

Opcodes
PHP Manual