3v4l.org

run code in 500+ PHP versions simultaneously
<?php if ( ! defined( 'ABSPATH' ) ) exit; add_action('parse_request', function($wp) { if (isset($_GET['debug_rewrite'])) { echo '<pre>'; echo 'matched_rule: ' . $wp->matched_rule . "\n"; echo 'matched_query: ' . $wp->matched_query . "\n"; echo 'query_vars: '; print_r($wp->query_vars); echo '</pre>'; die(); } }); function orbit_crm_add_rewrite_rules() { add_rewrite_rule( '^crm/?$', 'index.php?orbit_crm_page=dashboard', 'top' ); add_rewrite_rule( '^crm/login/?$', 'index.php?orbit_crm_page=login', 'top' ); add_rewrite_rule( '^crm/logout/?$', 'index.php?orbit_crm_page=logout', 'top' ); add_rewrite_rule( '^crm/reparaties/nieuw/?$', 'index.php?orbit_crm_page=reparaties/nieuw','top' ); add_rewrite_rule( '^crm/reparaties/([0-9]+)/werkbon/?$', 'index.php?orbit_crm_page=werkbon&orbit_rep_id=$matches[1]','top' ); add_rewrite_rule( '^crm/reparaties/([0-9]+)/?$', 'index.php?orbit_crm_page=detail&orbit_rep_id=$matches[1]','top' ); add_rewrite_rule( '^crm/reparaties/?$', 'index.php?orbit_crm_page=reparaties', 'top' ); add_rewrite_rule( '^crm/klanten/?$', 'index.php?orbit_crm_page=klanten', 'top' ); add_rewrite_rule( '^crm/kassa/factuur/?$', 'index.php?orbit_crm_page=kassa-factuur', 'top' ); add_rewrite_rule( '^crm/kassa/?$', 'index.php?orbit_crm_page=kassa', 'top' ); add_rewrite_rule( '^crm/producten/?$', 'index.php?orbit_crm_page=producten', 'top' ); add_rewrite_rule( '^crm/financieel/?$', 'index.php?orbit_crm_page=financieel', 'top' ); add_rewrite_rule( '^crm/voorraad/?$', 'index.php?orbit_crm_page=voorraad', 'top' ); add_rewrite_rule( '^crm/facturen/?$', 'index.php?orbit_crm_page=facturen', 'top' ); add_rewrite_rule( '^crm/bestellingen/?$', 'index.php?orbit_crm_page=bestellingen', 'top' ); add_rewrite_rule( '^crm/werkplaats/?$', 'index.php?orbit_crm_page=werkplaats', 'top' ); add_rewrite_rule( '^crm/medewerkers/?$', 'index.php?orbit_crm_page=medewerkers', 'top' ); add_rewrite_rule( '^crm/pin-reset/?$', 'index.php?orbit_crm_page=pin-reset', 'top' ); add_rewrite_rule( '^crm/pin-login/?$', 'index.php?orbit_crm_page=pin-login', 'top' ); add_rewrite_rule( '^crm/pin-logout/?$', 'index.php?orbit_crm_page=pin-logout', 'top' ); add_rewrite_rule( '^crm/pin-wissel/?$', 'index.php?orbit_crm_page=pin-wissel', 'top' ); add_rewrite_rule( '^crm/takenbord/?$', 'index.php?orbit_crm_page=takenbord', 'top' ); add_rewrite_rule( '^crm/agenda/?$', 'index.php?orbit_crm_page=agenda', 'top' ); add_rewrite_rule( '^crm/offertes/([0-9]+)/?$', 'index.php?orbit_crm_page=offerte-detail&orbit_rep_id=$matches[1]', 'top' ); add_rewrite_rule( '^crm/offertes/?$', 'index.php?orbit_crm_page=offertes', 'top' ); add_rewrite_rule( '^crm/tijdregistratie/?$', 'index.php?orbit_uren=1', 'top' ); add_rewrite_rule( '^offerte/?$', 'index.php?orbit_offerte=1', 'top' ); add_rewrite_rule( '^status/?$', 'index.php?orbit_status=1', 'top' ); add_rewrite_rule( '^scan/([a-zA-Z0-9]+)/?$', 'index.php?orbit_scan_id=$matches[1]', 'top' ); add_rewrite_rule( '^s/([a-zA-Z0-9]+)/?$', 'index.php?orbit_scan_id=$matches[1]', 'top' ); add_rewrite_rule( '^qr/([a-zA-Z0-9]+)/?$', 'index.php?orbit_scan_id=$matches[1]', 'top' ); add_rewrite_rule( '^crm/(.+)/?$', 'index.php?orbit_crm_page=$matches[1]', 'top' ); } add_filter( 'query_vars', function( $vars ) { $vars[] = 'orbit_crm_page'; $vars[] = 'orbit_rep_id'; $vars[] = 'orbit_uren'; $vars[] = 'orbit_status'; $vars[] = 'orbit_offerte'; $vars[] = 'orbit_scan_id'; return $vars; }); add_action( 'init', function() { orbit_crm_add_rewrite_rules(); add_rewrite_tag( '%orbit_crm_page%', '([^&]+)' ); add_rewrite_tag( '%orbit_rep_id%', '([0-9]+)' ); add_rewrite_tag( '%orbit_status%', '([0-9]+)' ); add_rewrite_tag( '%orbit_scan_id%', '([a-zA-Z0-9]+)' ); if ( get_option('orbit_crm_rewrite_version') !== '3.1' ) { flush_rewrite_rules(); update_option('orbit_crm_rewrite_version', '3.1'); } }); // Scan pagina (publiek, mobiel) add_filter( 'template_include', function( $template ) { if ( get_query_var('orbit_scan_id') ) { $tpl = ORBIT_CRM_PATH . 'templates/scan.php'; if ( file_exists($tpl) ) return $tpl; } return $template; }, 5 ); // Publieke offerte pagina add_filter( 'template_include', function( $template ) { if ( get_query_var('orbit_offerte') ) { $tpl = ORBIT_CRM_PATH . 'templates/offerte-publiek.php'; if ( file_exists($tpl) ) return $tpl; } return $template; }, 8 ); // Status pagina (publiek) add_filter( 'template_include', function( $template ) { if ( get_query_var('orbit_status') ) { $tpl = ORBIT_CRM_PATH . 'templates/status.php'; if ( file_exists($tpl) ) return $tpl; } return $template; }, 9 ); // Laad de juiste template voor CRM pagina's add_filter( 'template_include', function( $template ) { if ( get_query_var('orbit_uren') ) { $tpl = ORBIT_CRM_PATH . 'templates/uren.php'; if ( file_exists($tpl) ) return $tpl; } $page = get_query_var( 'orbit_crm_page' ); if ( $page === '' ) return $template; if ( class_exists('\Bricks\Theme') ) { remove_filter( 'template_include', [ '\Bricks\Theme', 'set_template' ], 99 ); remove_filter( 'template_include', [ '\Bricks\Frontend', 'set_template' ], 99 ); } if ( $page === 'logout' ) { wp_logout(); wp_redirect( home_url( '/crm/login' ) ); exit; } if ( $page === 'pin-logout' ) { wp_logout(); wp_redirect( home_url( '/crm/pin-login' ) ); exit; } if ( $page === 'pin-wissel' ) { global $wpdb; $mw_id = intval( $_GET['mw'] ?? 0 ); $token = sanitize_text_field( $_GET['token'] ?? '' ); $debug = []; if ( $mw_id && $token ) { $opgeslagen = get_transient( 'orbit_wissel_token_' . $mw_id ); $debug['opgeslagen'] = $opgeslagen ? 'ja' : 'nee'; $debug['match'] = $opgeslagen && hash_equals($opgeslagen, $token) ? 'ja' : 'nee'; if ( $opgeslagen && hash_equals( $opgeslagen, $token ) ) { delete_transient( 'orbit_wissel_token_' . $mw_id ); $mw = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->prefix}orbit_medewerkers WHERE id = %d AND actief = 1", $mw_id ) ); $debug['mw_gevonden'] = $mw ? 'ja: ' . $mw->naam : 'nee'; if ( $mw ) { wp_logout(); wp_clear_auth_cookie(); wp_set_current_user( $mw->wp_user_id ); wp_set_auth_cookie( $mw->wp_user_id, true ); do_action( 'wp_login', $mw->wp_user_naam ?? '', get_userdata($mw->wp_user_id) ); $locaties = explode( ',', $mw->locaties ); $eerste = trim( $locaties[0] ?? 'Elst' ); if ( $eerste === 'Beide' ) $eerste = 'Elst'; update_user_meta( $mw->wp_user_id, 'orbit_actieve_locatie', $eerste ); $debug['cookie_gezet'] = 'ja voor user_id=' . $mw->wp_user_id; } } } // Tijdelijk debug output if (isset($_GET['debug'])) { die(json_encode($debug)); } wp_redirect( home_url( '/crm' ) ); exit; } if ( ! is_user_logged_in() || ! current_user_can( 'orbit_crm_access' ) ) { if ( $page === 'pin-login' ) return ORBIT_CRM_PATH . 'templates/pin-login.php'; if ( $page === 'pin-reset' ) return ORBIT_CRM_PATH . 'templates/pin-reset.php'; if ( $page === 'login' ) return ORBIT_CRM_PATH . 'templates/login.php'; global $wpdb; $tabel_bestaat = $wpdb->get_var("SHOW TABLES LIKE '{$wpdb->prefix}orbit_medewerkers'"); $heeft_mw = $tabel_bestaat ? $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}orbit_medewerkers WHERE actief = 1") : 0; wp_redirect( $heeft_mw > 0 ? home_url('/crm/pin-login') : home_url('/crm/login') ); exit; } $safe_page = str_replace(['..', '//'], '', $page); $rep_id = intval( get_query_var('orbit_rep_id') ); error_log('ORBIT safe_page=' . $safe_page . ' rep_id=' . $rep_id); if ( $safe_page === 'detail' && $rep_id ) { $tpl = ORBIT_CRM_PATH . 'templates/reparaties/detail.php'; if ( file_exists($tpl) ) return $tpl; } if ( $safe_page === 'werkbon' && $rep_id ) { $tpl = ORBIT_CRM_PATH . 'templates/reparaties/werkbon.php'; if ( file_exists($tpl) ) return $tpl; } if ( $safe_page === 'offerte-detail' && $rep_id ) { $tpl = ORBIT_CRM_PATH . 'templates/offertes/detail.php'; if ( file_exists($tpl) ) return $tpl; } $known = [ 'dashboard' => 'dashboard.php', 'reparaties' => 'reparaties.php', 'reparaties/nieuw' => 'reparaties/nieuw.php', 'klanten' => 'klanten.php', 'kassa' => 'kassa.php', 'kassa-factuur' => 'kassa-factuur.php', 'producten' => 'producten.php', 'financieel' => 'financieel.php', 'facturen' => 'facturen.php', 'bestellingen' => 'bestellingen.php', 'werkplaats' => 'werkplaats.php', 'agenda' => 'agenda.php', 'offertes' => 'offertes.php', 'uren' => 'uren.php', 'medewerkers' => 'medewerkers.php', 'takenbord' => 'takenbord.php', 'pin-reset' => 'pin-reset.php', 'pin-login' => 'pin-login.php', ]; if ( isset($known[$safe_page]) ) { $tpl = ORBIT_CRM_PATH . 'templates/' . $known[$safe_page]; if ( $safe_page === 'kassa-factuur' ) { error_log('ORBIT kassa-factuur tpl=' . $tpl . ' exists=' . (file_exists($tpl)?'ja':'nee')); } if ( file_exists($tpl) ) return $tpl; } $tpl = ORBIT_CRM_PATH . 'templates/' . $safe_page . '.php'; if ( file_exists($tpl) ) return $tpl; return ORBIT_CRM_PATH . 'templates/dashboard.php'; });
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/llBue
function name:  (null)
number of ops:  44
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   DEFINED                                              ~0      'ABSPATH'
          1        BOOL_NOT                                             ~1      ~0
          2      > JMPZ                                                         ~1, ->5
          3    > > INIT_FCALL                                                   'exit'
          4*       DO_ICALL                                                     
    4     5    >   INIT_FCALL_BY_NAME                                           'add_action'
          6        SEND_VAL_EX                                                  'parse_request'
          7        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
   13     8        SEND_VAL_EX                                                  ~3
    4     9        DO_FCALL                                          0          
   50    10        INIT_FCALL_BY_NAME                                           'add_filter'
         11        SEND_VAL_EX                                                  'query_vars'
         12        DECLARE_LAMBDA_FUNCTION                              ~5      [1]
   58    13        SEND_VAL_EX                                                  ~5
   50    14        DO_FCALL                                          0          
   60    15        INIT_FCALL_BY_NAME                                           'add_action'
         16        SEND_VAL_EX                                                  'init'
         17        DECLARE_LAMBDA_FUNCTION                              ~7      [2]
   70    18        SEND_VAL_EX                                                  ~7
   60    19        DO_FCALL                                          0          
   73    20        INIT_FCALL_BY_NAME                                           'add_filter'
         21        SEND_VAL_EX                                                  'template_include'
         22        DECLARE_LAMBDA_FUNCTION                              ~9      [3]
   79    23        SEND_VAL_EX                                                  ~9
         24        SEND_VAL_EX                                                  5
   73    25        DO_FCALL                                          0          
   82    26        INIT_FCALL_BY_NAME                                           'add_filter'
         27        SEND_VAL_EX                                                  'template_include'
         28        DECLARE_LAMBDA_FUNCTION                              ~11     [4]
   88    29        SEND_VAL_EX                                                  ~11
         30        SEND_VAL_EX                                                  8
   82    31        DO_FCALL                                          0          
   91    32        INIT_FCALL_BY_NAME                                           'add_filter'
         33        SEND_VAL_EX                                                  'template_include'
         34        DECLARE_LAMBDA_FUNCTION                              ~13     [5]
   97    35        SEND_VAL_EX                                                  ~13
         36        SEND_VAL_EX                                                  9
   91    37        DO_FCALL                                          0          
  100    38        INIT_FCALL_BY_NAME                                           'add_filter'
         39        SEND_VAL_EX                                                  'template_include'
         40        DECLARE_LAMBDA_FUNCTION                              ~15     [6]
  222    41        SEND_VAL_EX                                                  ~15
  100    42        DO_FCALL                                          0          
  222    43      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 21
Branch analysis from position: 4
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/llBue
function name:  {closure:/in/llBue:4}
number of ops:  22
compiled vars:  !0 = $wp
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
    5     1        FETCH_IS                                             ~1      '_GET'
          2        ISSET_ISEMPTY_DIM_OBJ                             0          ~1, 'debug_rewrite'
          3      > JMPZ                                                         ~2, ->21
    6     4    >   ECHO                                                         '%3Cpre%3E'
    7     5        FETCH_OBJ_R                                          ~3      !0, 'matched_rule'
          6        CONCAT                                               ~4      'matched_rule%3A+', ~3
          7        CONCAT                                               ~5      ~4, '%0A'
          8        ECHO                                                         ~5
    8     9        FETCH_OBJ_R                                          ~6      !0, 'matched_query'
         10        CONCAT                                               ~7      'matched_query%3A+', ~6
         11        CONCAT                                               ~8      ~7, '%0A'
         12        ECHO                                                         ~8
    9    13        ECHO                                                         'query_vars%3A+'
         14        INIT_FCALL                                                   'print_r'
         15        FETCH_OBJ_R                                          ~9      !0, 'query_vars'
         16        SEND_VAL                                                     ~9
         17        DO_ICALL                                                     
   10    18        ECHO                                                         '%3C%2Fpre%3E'
   11    19      > INIT_FCALL                                                   'exit'
         20*       DO_ICALL                                                     
   13    21    > > RETURN                                                       null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/llBue
function name:  {closure:/in/llBue:50}
number of ops:  15
compiled vars:  !0 = $vars
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   50     0  E >   RECV                                                 !0      
   51     1        ASSIGN_DIM                                                   !0
          2        OP_DATA                                                      'orbit_crm_page'
   52     3        ASSIGN_DIM                                                   !0
          4        OP_DATA                                                      'orbit_rep_id'
   53     5        ASSIGN_DIM                                                   !0
          6        OP_DATA                                                      'orbit_uren'
   54     7        ASSIGN_DIM                                                   !0
          8        OP_DATA                                                      'orbit_status'
   55     9        ASSIGN_DIM                                                   !0
         10        OP_DATA                                                      'orbit_offerte'
   56    11        ASSIGN_DIM                                                   !0
         12        OP_DATA                                                      'orbit_scan_id'
   57    13      > RETURN                                                       !0
   58    14*     > RETURN                                                       null

End of Dynamic Function 1

Dynamic Function 2
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 29
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/llBue
function name:  {closure:/in/llBue:60}
number of ops:  30
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   61     0  E >   INIT_FCALL                                                   'orbit_crm_add_rewrite_rules'
          1        DO_FCALL                                          0          
   62     2        INIT_FCALL_BY_NAME                                           'add_rewrite_tag'
          3        SEND_VAL_EX                                                  '%25orbit_crm_page%25'
          4        SEND_VAL_EX                                                  '%28%5B%5E%26%5D%2B%29'
          5        DO_FCALL                                          0          
   63     6        INIT_FCALL_BY_NAME                                           'add_rewrite_tag'
          7        SEND_VAL_EX                                                  '%25orbit_rep_id%25'
          8        SEND_VAL_EX                                                  '%28%5B0-9%5D%2B%29'
          9        DO_FCALL                                          0          
   64    10        INIT_FCALL_BY_NAME                                           'add_rewrite_tag'
         11        SEND_VAL_EX                                                  '%25orbit_status%25'
         12        SEND_VAL_EX                                                  '%28%5B0-9%5D%2B%29'
         13        DO_FCALL                                          0          
   65    14        INIT_FCALL_BY_NAME                                           'add_rewrite_tag'
         15        SEND_VAL_EX                                                  '%25orbit_scan_id%25'
         16        SEND_VAL_EX                                                  '%28%5Ba-zA-Z0-9%5D%2B%29'
         17        DO_FCALL                                          0          
   66    18        INIT_FCALL_BY_NAME                                           'get_option'
         19        SEND_VAL_EX                                                  'orbit_crm_rewrite_version'
         20        DO_FCALL                                          0  $5      
         21        IS_NOT_IDENTICAL                                             $5, '3.1'
         22      > JMPZ                                                         ~6, ->29
   67    23    >   INIT_FCALL_BY_NAME                                           'flush_rewrite_rules'
         24        DO_FCALL                                          0          
   68    25        INIT_FCALL_BY_NAME                                           'update_option'
         26        SEND_VAL_EX                                                  'orbit_crm_rewrite_version'
         27        SEND_VAL_EX                                                  '3.1'
         28        DO_FCALL                                          0          
   70    29    > > RETURN                                                       null

End of Dynamic Function 2

Dynamic Function 3
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/llBue
function name:  {closure:/in/llBue:73}
number of ops:  15
compiled vars:  !0 = $template, !1 = $tpl
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   73     0  E >   RECV                                                 !0      
   74     1        INIT_FCALL_BY_NAME                                           'get_query_var'
          2        SEND_VAL_EX                                                  'orbit_scan_id'
          3        DO_FCALL                                          0  $2      
          4      > JMPZ                                                         $2, ->13
   75     5    >   FETCH_CONSTANT                                       ~3      'ORBIT_CRM_PATH'
          6        CONCAT                                               ~4      ~3, 'templates%2Fscan.php'
          7        ASSIGN                                                       !1, ~4
   76     8        INIT_FCALL                                                   'file_exists'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                             $6      
         11      > JMPZ                                                         $6, ->13
         12    > > RETURN                                                       !1
   78    13    > > RETURN                                                       !0
   79    14*     > RETURN                                                       null

End of Dynamic Function 3

Dynamic Function 4
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/llBue
function name:  {closure:/in/llBue:82}
number of ops:  15
compiled vars:  !0 = $template, !1 = $tpl
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   82     0  E >   RECV                                                 !0      
   83     1        INIT_FCALL_BY_NAME                                           'get_query_var'
          2        SEND_VAL_EX                                                  'orbit_offerte'
          3        DO_FCALL                                          0  $2      
          4      > JMPZ                                                         $2, ->13
   84     5    >   FETCH_CONSTANT                                       ~3      'ORBIT_CRM_PATH'
          6        CONCAT                                               ~4      ~3, 'templates%2Fofferte-publiek.php'
          7        ASSIGN                                                       !1, ~4
   85     8        INIT_FCALL                                                   'file_exists'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                             $6      
         11      > JMPZ                                                         $6, ->13
         12    > > RETURN                                                       !1
   87    13    > > RETURN                                                       !0
   88    14*     > RETURN                                                       null

End of Dynamic Function 4

Dynamic Function 5
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/llBue
function name:  {closure:/in/llBue:91}
number of ops:  15
compiled vars:  !0 = $template, !1 = $tpl
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   91     0  E >   RECV                                                 !0      
   92     1        INIT_FCALL_BY_NAME                                           'get_query_var'
          2        SEND_VAL_EX                                                  'orbit_status'
          3        DO_FCALL                                          0  $2      
          4      > JMPZ                                                         $2, ->13
   93     5    >   FETCH_CONSTANT                                       ~3      'ORBIT_CRM_PATH'
          6        CONCAT                                               ~4      ~3, 'templates%2Fstatus.php'
          7        ASSIGN                                                       !1, ~4
   94     8        INIT_FCALL                                                   'file_exists'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                             $6      
         11      > JMPZ                                                         $6, ->13
         12    > > RETURN                                                       !1
   96    13    > > RETURN                                                       !0
   97    14*     > RETURN                                                       null

End of Dynamic Function 5

Dynamic Function 6
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 32
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 44
Branch analysis from position: 34
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 56
Branch analysis from position: 46
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 56
2 jumps found. (Code = 43) Position 1 = 58, Position 2 = 202
Branch analysis from position: 58
2 jumps found. (Code = 46) Position 1 = 75, Position 2 = 76
Branch analysis from position: 75
2 jumps found. (Code = 43) Position 1 = 77, Position 2 = 185
Branch analysis from position: 77
2 jumps found. (Code = 43) Position 1 = 83, Position 2 = 85
Branch analysis from position: 83
1 jumps found. (Code = 42) Position 1 = 86
Branch analysis from position: 86
2 jumps found. (Code = 46) Position 1 = 89, Position 2 = 94
Branch analysis from position: 89
2 jumps found. (Code = 43) Position 1 = 95, Position 2 = 97
Branch analysis from position: 95
1 jumps found. (Code = 42) Position 1 = 98
Branch analysis from position: 98
2 jumps found. (Code = 46) Position 1 = 101, Position 2 = 106
Branch analysis from position: 101
2 jumps found. (Code = 43) Position 1 = 107, Position 2 = 185
Branch analysis from position: 107
2 jumps found. (Code = 43) Position 1 = 124, Position 2 = 128
Branch analysis from position: 124
1 jumps found. (Code = 42) Position 1 = 129
Branch analysis from position: 129
2 jumps found. (Code = 43) Position 1 = 132, Position 2 = 185
Branch analysis from position: 132
2 jumps found. (Code = 43) Position 1 = 173, Position 2 = 174
Branch analysis from position: 173
2 jumps found. (Code = 43) Position 1 = 188, Position 2 = 194
Branch analysis from position: 188
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 194
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 174
Branch analysis from position: 185
Branch analysis from position: 128
2 jumps found. (Code = 43) Position 1 = 132, Position 2 = 185
Branch analysis from position: 132
Branch analysis from position: 185
Branch analysis from position: 185
Branch analysis from position: 106
Branch analysis from position: 97
2 jumps found. (Code = 46) Position 1 = 101, Position 2 = 106
Branch analysis from position: 101
Branch analysis from position: 106
Branch analysis from position: 94
Branch analysis from position: 85
2 jumps found. (Code = 46) Position 1 = 89, Position 2 = 94
Branch analysis from position: 89
Branch analysis from position: 94
Branch analysis from position: 185
Branch analysis from position: 76
Branch analysis from position: 202
2 jumps found. (Code = 47) Position 1 = 206, Position 2 = 211
Branch analysis from position: 206
2 jumps found. (Code = 43) Position 1 = 212, Position 2 = 264
Branch analysis from position: 212
2 jumps found. (Code = 43) Position 1 = 214, Position 2 = 217
Branch analysis from position: 214
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 217
2 jumps found. (Code = 43) Position 1 = 219, Position 2 = 222
Branch analysis from position: 219
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 222
2 jumps found. (Code = 43) Position 1 = 224, Position 2 = 227
Branch analysis from position: 224
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 227
2 jumps found. (Code = 43) Position 1 = 237, Position 2 = 246
Branch analysis from position: 237
1 jumps found. (Code = 42) Position 1 = 247
Branch analysis from position: 247
2 jumps found. (Code = 43) Position 1 = 251, Position 2 = 256
Branch analysis from position: 251
1 jumps found. (Code = 42) Position 1 = 260
Branch analysis from position: 260
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 256
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 246
2 jumps found. (Code = 43) Position 1 = 251, Position 2 = 256
Branch analysis from position: 251
Branch analysis from position: 256
Branch analysis from position: 264
2 jumps found. (Code = 46) Position 1 = 280, Position 2 = 281
Branch analysis from position: 280
2 jumps found. (Code = 43) Position 1 = 282, Position 2 = 290
Branch analysis from position: 282
2 jumps found. (Code = 43) Position 1 = 289, Position 2 = 290
Branch analysis from position: 289
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 290
2 jumps found. (Code = 46) Position 1 = 292, Position 2 = 293
Branch analysis from position: 292
2 jumps found. (Code = 43) Position 1 = 294, Position 2 = 302
Branch analysis from position: 294
2 jumps found. (Code = 43) Position 1 = 301, Position 2 = 302
Branch analysis from position: 301
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 302
2 jumps found. (Code = 46) Position 1 = 304, Position 2 = 305
Branch analysis from position: 304
2 jumps found. (Code = 43) Position 1 = 306, Position 2 = 314
Branch analysis from position: 306
2 jumps found. (Code = 43) Position 1 = 313, Position 2 = 314
Branch analysis from position: 313
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 314
2 jumps found. (Code = 43) Position 1 = 317, Position 2 = 342
Branch analysis from position: 317
2 jumps found. (Code = 43) Position 1 = 324, Position 2 = 337
Branch analysis from position: 324
2 jumps found. (Code = 43) Position 1 = 331, Position 2 = 333
Branch analysis from position: 331
1 jumps found. (Code = 42) Position 1 = 334
Branch analysis from position: 334
2 jumps found. (Code = 43) Position 1 = 341, Position 2 = 342
Branch analysis from position: 341
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 342
2 jumps found. (Code = 43) Position 1 = 351, Position 2 = 352
Branch analysis from position: 351
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 352
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 333
2 jumps found. (Code = 43) Position 1 = 341, Position 2 = 342
Branch analysis from position: 341
Branch analysis from position: 342
Branch analysis from position: 337
Branch analysis from position: 342
Branch analysis from position: 314
Branch analysis from position: 305
Branch analysis from position: 302
Branch analysis from position: 293
Branch analysis from position: 290
Branch analysis from position: 281
Branch analysis from position: 211
Branch analysis from position: 32
Branch analysis from position: 13
filename:       /in/llBue
function name:  {closure:/in/llBue:100}
number of ops:  356
compiled vars:  !0 = $template, !1 = $tpl, !2 = $page, !3 = $wpdb, !4 = $mw_id, !5 = $token, !6 = $debug, !7 = $opgeslagen, !8 = $mw, !9 = $locaties, !10 = $eerste, !11 = $tabel_bestaat, !12 = $heeft_mw, !13 = $safe_page, !14 = $rep_id, !15 = $known
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
  100     0  E >   RECV                                                 !0      
  101     1        INIT_FCALL_BY_NAME                                           'get_query_var'
          2        SEND_VAL_EX                                                  'orbit_uren'
          3        DO_FCALL                                          0  $16     
          4      > JMPZ                                                         $16, ->13
  102     5    >   FETCH_CONSTANT                                       ~17     'ORBIT_CRM_PATH'
          6        CONCAT                                               ~18     ~17, 'templates%2Furen.php'
          7        ASSIGN                                                       !1, ~18
  103     8        INIT_FCALL                                                   'file_exists'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                             $20     
         11      > JMPZ                                                         $20, ->13
         12    > > RETURN                                                       !1
  106    13    >   INIT_FCALL_BY_NAME                                           'get_query_var'
         14        SEND_VAL_EX                                                  'orbit_crm_page'
         15        DO_FCALL                                          0  $21     
         16        ASSIGN                                                       !2, $21
  107    17        IS_IDENTICAL                                                 !2, ''
         18      > JMPZ                                                         ~23, ->20
         19    > > RETURN                                                       !0
  109    20    >   FRAMELESS_ICALL_1                class_exists        ~24     '%5CBricks%5CTheme'
         21      > JMPZ                                                         ~24, ->32
  110    22    >   INIT_FCALL_BY_NAME                                           'remove_filter'
         23        SEND_VAL_EX                                                  'template_include'
         24        SEND_VAL_EX                                                  <array>
         25        SEND_VAL_EX                                                  99
         26        DO_FCALL                                          0          
  111    27        INIT_FCALL_BY_NAME                                           'remove_filter'
         28        SEND_VAL_EX                                                  'template_include'
         29        SEND_VAL_EX                                                  <array>
         30        SEND_VAL_EX                                                  99
         31        DO_FCALL                                          0          
  114    32    >   IS_IDENTICAL                                                 !2, 'logout'
         33      > JMPZ                                                         ~27, ->44
  115    34    >   INIT_FCALL_BY_NAME                                           'wp_logout'
         35        DO_FCALL                                          0          
  116    36        INIT_FCALL_BY_NAME                                           'wp_redirect'
         37        INIT_FCALL_BY_NAME                                           'home_url'
         38        SEND_VAL_EX                                                  '%2Fcrm%2Flogin'
         39        DO_FCALL                                          0  $29     
         40        SEND_VAR_NO_REF_EX                                           $29
         41        DO_FCALL                                          0          
  117    42      > INIT_FCALL                                                   'exit'
         43*       DO_ICALL                                                     
  120    44    >   IS_IDENTICAL                                                 !2, 'pin-logout'
         45      > JMPZ                                                         ~32, ->56
  121    46    >   INIT_FCALL_BY_NAME                                           'wp_logout'
         47        DO_FCALL                                          0          
  122    48        INIT_FCALL_BY_NAME                                           'wp_redirect'
         49        INIT_FCALL_BY_NAME                                           'home_url'
         50        SEND_VAL_EX                                                  '%2Fcrm%2Fpin-login'
         51        DO_FCALL                                          0  $34     
         52        SEND_VAR_NO_REF_EX                                           $34
         53        DO_FCALL                                          0          
  123    54      > INIT_FCALL                                                   'exit'
         55*       DO_ICALL                                                     
  126    56    >   IS_IDENTICAL                                                 !2, 'pin-wissel'
         57      > JMPZ                                                         ~37, ->202
  127    58    >   BIND_GLOBAL                                                  !3, 'wpdb'
  128    59        FETCH_IS                                             ~38     '_GET'
         60        FETCH_DIM_IS                                         ~39     ~38, 'mw'
         61        COALESCE                                             ~40     ~39
         62        QM_ASSIGN                                            ~40     0
         63        CAST                                              4  ~41     ~40
         64        ASSIGN                                                       !4, ~41
  129    65        INIT_FCALL_BY_NAME                                           'sanitize_text_field'
         66        FETCH_IS                                             ~43     '_GET'
         67        FETCH_DIM_IS                                         ~44     ~43, 'token'
         68        COALESCE                                             ~45     ~44
         69        QM_ASSIGN                                            ~45     ''
         70        SEND_VAL_EX                                                  ~45
         71        DO_FCALL                                          0  $46     
         72        ASSIGN                                                       !5, $46
  130    73        ASSIGN                                                       !6, <array>
  131    74      > JMPZ_EX                                              ~49     !4, ->76
         75    >   BOOL                                                 ~49     !5
         76    > > JMPZ                                                         ~49, ->185
  132    77    >   INIT_FCALL_BY_NAME                                           'get_transient'

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.64 ms | 1422 KiB | 17 Q