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 (['a', 'b', 'c'] as $handler) { $abort = FALSE; $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 = 12
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 12
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 12
Branch analysis from position: 12
filename:       /in/iTRlO
function name:  (null)
number of ops:  14
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>, ->12
          1    > > FE_FETCH_R                                               $3, !0, ->12
   12     2    >   ASSIGN                                                   !1, <false>
   13     3        FETCH_DIM_W                                      $5      !2
          4        ASSIGN_REF                                               $5, !1
   14     5        INIT_USER_CALL                                0          'call_user_func_array', !0
          6        SEND_ARRAY                                               !2
          7        CHECK_UNDEF_ARGS                                         
          8        DO_FCALL                                      0          
   15     9      > JMPZ                                                     !1, ->11
         10    > > JMP                                                      ->12
   11    11    > > JMP                                                      ->1
         12    >   FE_FREE                                                  $3
   16    13      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iTRlO
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/iTRlO
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/iTRlO
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:
175.31 ms | 1400 KiB | 15 Q