3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pk_stt2_admin_print_delete_form(){ global $wpdb; if ( isset($_POST['delete_terms']) && !empty($_POST['delete_terms']) ){ $msg = 'Search terms'; $success = pk_stt2_db_delete_searchterms( $_POST['delete_terms'] ); } elseif ( isset($_POST['delete_all']) ){ $msg = 'All search terms'; $success = pk_stt2_db_delete_searchterms( 'delete_all_terms' ); } else { ?> <div id="message" class="updated fade"> <p> Please enter the search terms to be deleted, separate them with a comma. </p> </div> <?php } if ( $success ){ ?> <div id="message" class="updated fade"> <p> <?php echo $msg; ?> have been deleted, <?php echo $success; ?> rows effected. </p> </div> <?php } else { ?> <div id="message" class="updated fade"> <p> Failed to delete search terms. </p> </div> <?php } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UKN9c
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   34     0  E > > RETURN                                                   1

Function pk_stt2_admin_print_delete_form:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 35
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 27
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 35
Branch analysis from position: 29
Branch analysis from position: 35
Branch analysis from position: 8
filename:       /in/UKN9c
function name:  pk_stt2_admin_print_delete_form
number of ops:  37
compiled vars:  !0 = $wpdb, !1 = $msg, !2 = $success
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BIND_GLOBAL                                              !0, 'wpdb'
    4     1        FETCH_IS                                         ~3      '_POST'
          2        ISSET_ISEMPTY_DIM_OBJ                         0  ~4      ~3, 'delete_terms'
          3      > JMPZ_EX                                          ~4      ~4, ->8
          4    >   FETCH_IS                                         ~5      '_POST'
          5        ISSET_ISEMPTY_DIM_OBJ                         1  ~6      ~5, 'delete_terms'
          6        BOOL_NOT                                         ~7      ~6
          7        BOOL                                             ~4      ~7
          8    > > JMPZ                                                     ~4, ->18
    5     9    >   ASSIGN                                                   !1, 'Search+terms'
    6    10        INIT_FCALL_BY_NAME                                       'pk_stt2_db_delete_searchterms'
         11        CHECK_FUNC_ARG                                           
         12        FETCH_FUNC_ARG               global              $9      '_POST'
         13        FETCH_DIM_FUNC_ARG                               $10     $9, 'delete_terms'
         14        SEND_FUNC_ARG                                            $10
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                                   !2, $11
         17      > JMP                                                      ->28
    7    18    >   FETCH_IS                                         ~13     '_POST'
         19        ISSET_ISEMPTY_DIM_OBJ                         0          ~13, 'delete_all'
         20      > JMPZ                                                     ~14, ->27
    8    21    >   ASSIGN                                                   !1, 'All+search+terms'
    9    22        INIT_FCALL_BY_NAME                                       'pk_stt2_db_delete_searchterms'
         23        SEND_VAL_EX                                              'delete_all_terms'
         24        DO_FCALL                                      0  $16     
         25        ASSIGN                                                   !2, $16
         26      > JMP                                                      ->28
   12    27    >   ECHO                                                     '++%3Cdiv+id%3D%22message%22+class%3D%22updated+fade%22%3E%0A+++%3Cp%3E++++++++Please+enter+the+search+terms+to+be+deleted%2C+separate+them+with+a+comma.%0A+++%3C%2Fp%3E%0A++%3C%2Fdiv%3E%0A++'
   18    28    > > JMPZ                                                     !2, ->35
   20    29    >   ECHO                                                     '++%3Cdiv+id%3D%22message%22+class%3D%22updated+fade%22%3E%0A+++%3Cp%3E++++++++'
   21    30        ECHO                                                     !1
         31        ECHO                                                     '+have+been+deleted%2C%0A++++'
   22    32        ECHO                                                     !2
         33        ECHO                                                     '++++++++rows+effected.%0A+++%3C%2Fp%3E%0A++%3C%2Fdiv%3E%0A++'
         34      > JMP                                                      ->36
   28    35    >   ECHO                                                     '++%3Cdiv+id%3D%22message%22+class%3D%22updated+fade%22%3E%0A+++%3Cp%3E++++++++Failed+to+delete+search+terms.%0A+++%3C%2Fp%3E%0A++%3C%2Fdiv%3E%0A++'
   34    36    > > RETURN                                                   null

End of function pk_stt2_admin_print_delete_form

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.7 ms | 1399 KiB | 13 Q