3v4l.org

run code in 300+ PHP versions simultaneously
<?php function remove_action() { var_export(func_get_args()); echo "\n"; } $config = array( 'remove_actions' => [ 'genesis_after_header' => [ 'genesis_do_nav' => null, 'genesis_do_subnav' => null, ], 'genesis_site_title' => [ 'genesis_seo_site_title' => 5 ], ], ); foreach ($config['remove_actions'] as $hook => $functions) { foreach ($functions as $function => $priority) { if (is_null($priority)) { remove_action($hook, $function); } else { remove_action($hook, $function, $priority); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 23
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 21
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 21
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/ljpNd
function name:  (null)
number of ops:  25
compiled vars:  !0 = $config, !1 = $functions, !2 = $hook, !3 = $priority, !4 = $function
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
   20     1        FETCH_DIM_R                                      ~6      !0, 'remove_actions'
          2      > FE_RESET_R                                       $7      ~6, ->23
          3    > > FE_FETCH_R                                       ~8      $7, !1, ->23
          4    >   ASSIGN                                                   !2, ~8
   21     5      > FE_RESET_R                                       $10     !1, ->21
          6    > > FE_FETCH_R                                       ~11     $10, !3, ->21
          7    >   ASSIGN                                                   !4, ~11
   22     8        TYPE_CHECK                                    2          !3
          9      > JMPZ                                                     ~13, ->15
   23    10    >   INIT_FCALL                                               'remove_action'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !4
         13        DO_FCALL                                      0          
   22    14      > JMP                                                      ->20
   25    15    >   INIT_FCALL                                               'remove_action'
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !4
         18        SEND_VAR                                                 !3
         19        DO_FCALL                                      0          
   21    20    > > JMP                                                      ->6
         21    >   FE_FREE                                                  $10
   20    22      > JMP                                                      ->3
         23    >   FE_FREE                                                  $7
   28    24      > RETURN                                                   1

Function remove_action:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ljpNd
function name:  remove_action
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_export'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    5     4        ECHO                                                     '%0A'
    6     5      > RETURN                                                   null

End of function remove_action

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.91 ms | 1005 KiB | 16 Q