3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { var_dump('a called'); } function b(&$abort) { $abort = TRUE; var_dump('b called'); } function c() { var_dump('c called'); } foreach (array('a', 'b', 'c') as $handler) { $abort = FALSE; $args = array(); $args[] = &$abort; call_user_func_array($handler, $args); if ($abort) break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 13
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 13
Branch analysis from position: 13
filename:       /in/cl2dj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $handler, !1 = $abort, !2 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > FE_RESET_R                                       $3      <array>, ->13
          1    > > FE_FETCH_R                                               $3, !0, ->13
   12     2    >   ASSIGN                                                   !1, <false>
   13     3        ASSIGN                                                   !2, <array>
   14     4        FETCH_DIM_W                                      $6      !2
          5        ASSIGN_REF                                               $6, !1
   15     6        INIT_USER_CALL                                0          'call_user_func_array', !0
          7        SEND_ARRAY                                               !2
          8        CHECK_UNDEF_ARGS                                         
          9        DO_FCALL                                      0          
   16    10      > JMPZ                                                     !1, ->12
         11    > > JMP                                                      ->13
   11    12    > > JMP                                                      ->1
         13    >   FE_FREE                                                  $3
   17    14      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cl2dj
function name:  a
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'a+called'
          2        DO_ICALL                                                 
          3      > RETURN                                                   null

End of function a

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cl2dj
function name:  b
number of ops:  6
compiled vars:  !0 = $abort
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !0, <true>
    6     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAL                                                 'b+called'
          4        DO_ICALL                                                 
    7     5      > RETURN                                                   null

End of function b

Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cl2dj
function name:  c
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'c+called'
          2        DO_ICALL                                                 
          3      > RETURN                                                   null

End of function c

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.53 ms | 1400 KiB | 15 Q