3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(2); use Elastic\Elasticsearch\ClientBuilder; header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Headers: *"); try { //print_r($_POST); $debug = false; $keys = array_keys($_POST); $search_location = $_POST['l']; // 0 - nosah, 1 - beur $books = $_POST['b']; // string in format '1,2,3,4,5,6,7,8,9,10,11,12,13,14' $phase = $_POST['phase']; if (in_array('e', $keys)) { $exactPhrase = $_POST['e']; } else { $exactPhrase = '0'; } if (in_array('from', $keys)) { $from = $_POST['from']; } else { $from = 0; } if (in_array('size', $keys)) { $size = $_POST['size']; } else { $size = 100; } if (in_array('book', $keys)) { $search_book = $_POST['book']; } else { $search_book = "mishne"; } if ($debug) { $date = new DateTime(); echo 'after get data from POST: ' . $date->format('H:i:s:u'); echo "<br />"; } $client = ClientBuilder::create() ->setHosts(["http://XXXXXXXX"]) ->build(); if ($from == 0) { $searchlogparams = [ 'index' => 'searchlog', 'type' => 'search_log', 'body' => ['phrase' => $phase, 'timestamp' => date('c'), 'search_type' => $exactPhrase, 'search_location' => $search_location, 'search_books' => explode(',', $books), ], ]; // Document will be indexed to my_index/my_type/my_id $response = $client->index($searchlogparams); } if ($debug) { $date = new DateTime(); echo 'after create connection: ' . $date->format('H:i:s:u'); echo "<br />"; } $params['from'] = $from; $params['size'] = $size; if ($search_book == "mishne") { $params['index'] = $search_location == '0' ? 'rambam_nosah_index' : 'rambam_beur_index'; } else if ($search_book == "more") { $params['index'] = $search_location == '0' ? 'more_nosah_index' : 'more_beur_index'; } $params['type'] = 'text'; $params['_source'] = $search_location == '0' ? array('book', 'hativa', 'chapter') : array('book', 'hativa', 'chapter', 'link'); $params['body']['sort'] = $search_location == '0' ? [ ['book' => ['order' => 'asc']], ['hativa' => ['order' => 'asc']], ['chapter' => ['order' => 'asc']], ] : [ ['book' => ['order' => 'asc']], ['hativa' => ['order' => 'asc']], ['chapter' => ['order' => 'asc']], ['link' => ['order' => 'asc']], ]; $params['body']['highlight'] = [ 'order' => 'score', 'fields' => [ 'content' => [ 'number_of_fragments' => 100, 'fragment_size' => 50, 'options' => [ 'locale' => 'he_il', 'top_scoring' => true, ], ], ], ]; if ($books == '1,2,3,4,5,6,7,8,9,10,11,12,13,14') { if ($exactPhrase == '1') { $params['body']['query']['match_phrase'] = ['content' => ['query' => $phase]]; } else { $params['body']['query']['match'] = ['content' => $phase]; } } else { $books_array = explode(',', $books); $params['body']['query']['bool']['should'] = []; foreach ($books_array as $value) { array_push($params['body']['query']['bool']['should'], [ 'term' => ['book' => $value], ]); } $params['body']['query']['bool']['minimum_should_match'] = 1; if ($exactPhrase == '1') { $params['body']['query']['bool']['must'] = [ 'match_phrase' => ['content' => ['query' => $phase]], ]; } else { $params['body']['query']['bool']['must'] = [ 'match' => ['content' => $phase], ]; } } if ($debug) { $date = new DateTime(); echo 'after create request object: ' . $date->format('H:i:s:u'); echo "<br />"; } //print_r($params); // $params = [ // 'size' => 1006, // 'index' => ['rambam_nosah_index', 'rambam_beur_index'], // 'type' => 'text', // //'explain' => true, // '_source' => array('book', 'hativa', 'chapter'), // 'body' => [ // 'query' => [ // 'bool' => [ // // 'filter' => [ // // ['term' => [ 'book' => '14' ]], // // ['term' => [ 'chapter' => '6' ]] // // ], // 'should' => [ // ['term' => [ 'book' => 14 ]], // ['term' => [ 'book' => 6 ]] // ], // 'minimum_should_match' => 1, // 'must' => [ // 'match' => ['content' => 'אברהם'], // ], // //'should' => [ // // //'match_phrase_prefix' => [ 'content' => 'טהרה' ] // // 'match_phrase' => [ 'content' => 'טהור' ] // // //'match' => [ 'content' => 'שבות' ] // //], // //'must_not' => [ // // 'match' => [ 'content' => 'שבת' ] // //] // ], // ], // 'sort' => [ // ['book' => ['order' => 'asc']], // ['hativa' => ['order' => 'asc']], // ['chapter' => ['order' => 'asc']], // ], // 'highlight' => [ // //'pre_tags' => ['<tag1>'], // //'post_tags' => ['</tag1>'], // //'tags_schema' => 'styled', // 'order' => 'score', // 'fields' => [ // 'content' => [ // //'force_source' => true, // 'number_of_fragments' => 200, // 'fragment_size' => 100, // //'no_match_size' => 150, // //'fragmenter' => 'scan', // scan OR sentence OR none // //'type' => 'experimental', // 'options' => [ // 'locale' => 'he_il', // 'top_scoring' => true, // ], // ], // ], // ], // ], // ]; //print_r($params); $results = $client->search($params); if ($debug) { $date = new DateTime(); echo 'after search: ' . $date->format('H:i:s:u'); echo "<br />"; } // echo "<pre>"; // print_r($results); // echo "</pre>"; // echo "<pre>"; // var_dump($results); // echo "</pre>"; $Maches = []; $id = 0; foreach ($results['hits']['hits'] as $index => $hit) { $Maches[$id] = [ 'l' => $hit['sort'], 'c' => $hit['highlight']['content'], ]; $id++; } if ($debug) { $date = new DateTime(); echo 'after create result object: ' . $date->format('H:i:s:u'); echo "<br />"; } $resultArray['paging'] = [ 'total' => $results['hits']['total']['value'], 'from' => $from, 'size' => $size, ]; $resultArray['maches'] = $Maches; //echo "<pre>"; print_r(json_encode($resultArray, JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_FORCE_OBJECT)); //print_r(gzcompress(json_encode($Maches, JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_FORCE_OBJECT), 6)); //echo "</pre>"; if ($debug) { $date = new DateTime(); echo 'after print result object: ' . $date->format('H:i:s:u'); echo "<br />"; } } catch (Exception $e) { // echo 'Caught exception: ', $e->getMessage(), "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 30
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 37
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 44
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 51
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
2 jumps found. (Code = 43) Position 1 = 53, Position 2 = 62
Branch analysis from position: 53
2 jumps found. (Code = 43) Position 1 = 72, Position 2 = 92
Branch analysis from position: 72
2 jumps found. (Code = 43) Position 1 = 93, Position 2 = 102
Branch analysis from position: 93
2 jumps found. (Code = 43) Position 1 = 108, Position 2 = 116
Branch analysis from position: 108
2 jumps found. (Code = 43) Position 1 = 110, Position 2 = 112
Branch analysis from position: 110
1 jumps found. (Code = 42) Position 1 = 113
Branch analysis from position: 113
1 jumps found. (Code = 42) Position 1 = 125
Branch analysis from position: 125
2 jumps found. (Code = 43) Position 1 = 129, Position 2 = 131
Branch analysis from position: 129
1 jumps found. (Code = 42) Position 1 = 132
Branch analysis from position: 132
2 jumps found. (Code = 43) Position 1 = 136, Position 2 = 138
Branch analysis from position: 136
1 jumps found. (Code = 42) Position 1 = 139
Branch analysis from position: 139
2 jumps found. (Code = 43) Position 1 = 147, Position 2 = 162
Branch analysis from position: 147
2 jumps found. (Code = 43) Position 1 = 149, Position 2 = 156
Branch analysis from position: 149
1 jumps found. (Code = 42) Position 1 = 161
Branch analysis from position: 161
1 jumps found. (Code = 42) Position 1 = 209
Branch analysis from position: 209
2 jumps found. (Code = 43) Position 1 = 210, Position 2 = 219
Branch analysis from position: 210
2 jumps found. (Code = 43) Position 1 = 224, Position 2 = 233
Branch analysis from position: 224
2 jumps found. (Code = 77) Position 1 = 238, Position 2 = 249
Branch analysis from position: 238
2 jumps found. (Code = 78) Position 1 = 239, Position 2 = 249
Branch analysis from position: 239
1 jumps found. (Code = 42) Position 1 = 238
Branch analysis from position: 238
Branch analysis from position: 249
2 jumps found. (Code = 43) Position 1 = 251, Position 2 = 260
Branch analysis from position: 251
2 jumps found. (Code = 43) Position 1 = 278, Position 2 = 287
Branch analysis from position: 278
1 jumps found. (Code = 42) Position 1 = 289
Branch analysis from position: 289
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 287
Branch analysis from position: 260
Branch analysis from position: 249
Branch analysis from position: 233
Branch analysis from position: 219
Branch analysis from position: 156
1 jumps found. (Code = 42) Position 1 = 209
Branch analysis from position: 209
Branch analysis from position: 162
2 jumps found. (Code = 77) Position 1 = 173, Position 2 = 185
Branch analysis from position: 173
2 jumps found. (Code = 78) Position 1 = 174, Position 2 = 185
Branch analysis from position: 174
1 jumps found. (Code = 42) Position 1 = 173
Branch analysis from position: 173
Branch analysis from position: 185
2 jumps found. (Code = 43) Position 1 = 193, Position 2 = 202
Branch analysis from position: 193
1 jumps found. (Code = 42) Position 1 = 209
Branch analysis from position: 209
Branch analysis from position: 202
2 jumps found. (Code = 43) Position 1 = 210, Position 2 = 219
Branch analysis from position: 210
Branch analysis from position: 219
Branch analysis from position: 185
Branch analysis from position: 138
2 jumps found. (Code = 43) Position 1 = 147, Position 2 = 162
Branch analysis from position: 147
Branch analysis from position: 162
Branch analysis from position: 131
2 jumps found. (Code = 43) Position 1 = 136, Position 2 = 138
Branch analysis from position: 136
Branch analysis from position: 138
Branch analysis from position: 112
1 jumps found. (Code = 42) Position 1 = 125
Branch analysis from position: 125
Branch analysis from position: 116
2 jumps found. (Code = 43) Position 1 = 118, Position 2 = 125
Branch analysis from position: 118
2 jumps found. (Code = 43) Position 1 = 120, Position 2 = 122
Branch analysis from position: 120
1 jumps found. (Code = 42) Position 1 = 123
Branch analysis from position: 123
2 jumps found. (Code = 43) Position 1 = 129, Position 2 = 131
Branch analysis from position: 129
Branch analysis from position: 131
Branch analysis from position: 122
2 jumps found. (Code = 43) Position 1 = 129, Position 2 = 131
Branch analysis from position: 129
Branch analysis from position: 131
Branch analysis from position: 125
Branch analysis from position: 102
Branch analysis from position: 92
Branch analysis from position: 62
Branch analysis from position: 51
2 jumps found. (Code = 43) Position 1 = 53, Position 2 = 62
Branch analysis from position: 53
Branch analysis from position: 62
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 51
Branch analysis from position: 47
Branch analysis from position: 51
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 44
Branch analysis from position: 40
Branch analysis from position: 44
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 37
Branch analysis from position: 33
Branch analysis from position: 37
Found catch point at position: 288
Branch analysis from position: 288
2 jumps found. (Code = 107) Position 1 = 289, Position 2 = -2
Branch analysis from position: 289
filename:       /in/U4aI2
function name:  (null)
number of ops:  290
compiled vars:  !0 = $debug, !1 = $keys, !2 = $search_location, !3 = $books, !4 = $phase, !5 = $exactPhrase, !6 = $from, !7 = $size, !8 = $search_book, !9 = $date, !10 = $client, !11 = $searchlogparams, !12 = $response, !13 = $params, !14 = $books_array, !15 = $value, !16 = $results, !17 = $Maches, !18 = $id, !19 = $hit, !20 = $index, !21 = $resultArray, !22 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     2
          2        DO_ICALL                                                     
    6     3        INIT_FCALL                                                   'header'
          4        SEND_VAL                                                     'Access-Control-Allow-Origin%3A+%2A'
          5        DO_ICALL                                                     
    7     6        INIT_FCALL                                                   'header'
          7        SEND_VAL                                                     'Access-Control-Allow-Headers%3A+%2A'
          8        DO_ICALL                                                     
   11     9        ASSIGN                                                       !0, <false>
   13    10        INIT_FCALL                                                   'array_keys'
         11        FETCH_R                          global              ~27     '_POST'
         12        SEND_VAL                                                     ~27
         13        DO_ICALL                                             $28     
         14        ASSIGN                                                       !1, $28
   15    15        FETCH_R                          global              ~30     '_POST'
         16        FETCH_DIM_R                                          ~31     ~30, 'l'
         17        ASSIGN                                                       !2, ~31
   16    18        FETCH_R                          global              ~33     '_POST'
         19        FETCH_DIM_R                                          ~34     ~33, 'b'
         20        ASSIGN                                                       !3, ~34
   17    21        FETCH_R                          global              ~36     '_POST'
         22        FETCH_DIM_R                                          ~37     ~36, 'phase'
         23        ASSIGN                                                       !4, ~37
   19    24        FRAMELESS_ICALL_2                in_array            ~39     'e', !1
         25      > JMPZ                                                         ~39, ->30
   20    26    >   FETCH_R                          global              ~40     '_POST'
         27        FETCH_DIM_R                                          ~41     ~40, 'e'
         28        ASSIGN                                                       !5, ~41
   19    29      > JMP                                                          ->31
   22    30    >   ASSIGN                                                       !5, '0'
   25    31    >   FRAMELESS_ICALL_2                in_array            ~44     'from', !1
         32      > JMPZ                                                         ~44, ->37
   26    33    >   FETCH_R                          global              ~45     '_POST'
         34        FETCH_DIM_R                                          ~46     ~45, 'from'
         35        ASSIGN                                                       !6, ~46
   25    36      > JMP                                                          ->38
   28    37    >   ASSIGN                                                       !6, 0
   31    38    >   FRAMELESS_ICALL_2                in_array            ~49     'size', !1
         39      > JMPZ                                                         ~49, ->44
   32    40    >   FETCH_R                          global              ~50     '_POST'
         41        FETCH_DIM_R                                          ~51     ~50, 'size'
         42        ASSIGN                                                       !7, ~51
   31    43      > JMP                                                          ->45
   34    44    >   ASSIGN                                                       !7, 100
   37    45    >   FRAMELESS_ICALL_2                in_array            ~54     'book', !1
         46      > JMPZ                                                         ~54, ->51
   38    47    >   FETCH_R                          global              ~55     '_POST'
         48        FETCH_DIM_R                                          ~56     ~55, 'book'
         49        ASSIGN                                                       !8, ~56
   37    50      > JMP                                                          ->52
   40    51    >   ASSIGN                                                       !8, 'mishne'
   43    52    > > JMPZ                                                         !0, ->62
   44    53    >   NEW                                                  $59     'DateTime'
         54        DO_FCALL                                          0          
         55        ASSIGN                                                       !9, $59
   45    56        INIT_METHOD_CALL                                             !9, 'format'
         57        SEND_VAL_EX                                                  'H%3Ai%3As%3Au'
         58        DO_FCALL                                          0  $62     
         59        CONCAT                                               ~63     'after+get+data+from+POST%3A+', $62
         60        ECHO                                                         ~63
   46    61        ECHO                                                         '%3Cbr+%2F%3E'
   49    62    >   INIT_STATIC_METHOD_CALL                                      'Elastic%5CElasticsearch%5CClientBuilder', 'create'
         63        DO_FCALL                                          0  $64     
   50    64        INIT_METHOD_CALL                                             $64, 'setHosts'
         65        SEND_VAL_EX                                                  <array>
         66        DO_FCALL                                          0  $65     
   51    67        INIT_METHOD_CALL                                             $65, 'build'
         68        DO_FCALL                                          0  $66     
   49    69        ASSIGN                                                       !10, $66
   53    70        IS_EQUAL                                                     !6, 0
         71      > JMPZ                                                         ~68, ->92
   55    72    >   INIT_ARRAY                                           ~69     'searchlog', 'index'
   56    73        ADD_ARRAY_ELEMENT                                    ~69     'search_log', 'type'
   57    74        INIT_ARRAY                                           ~70     !4, 'phrase'
   58    75        INIT_FCALL                                                   'date'
         76        SEND_VAL                                                     'c'
         77        DO_ICALL                                             $71     
         78        ADD_ARRAY_ELEMENT                                    ~70     $71, 'timestamp'
   59    79        ADD_ARRAY_ELEMENT                                    ~70     !5, 'search_type'
   60    80        ADD_ARRAY_ELEMENT                                    ~70     !2, 'search_location'
   61    81        INIT_FCALL                                                   'explode'
         82        SEND_VAL                                                     '%2C'
         83        SEND_VAR                                                     !3
         84        DO_ICALL                                             $72     
         85        ADD_ARRAY_ELEMENT                                    ~70     $72, 'search_books'
         86        ADD_ARRAY_ELEMENT                                    ~69     ~70, 'body'
   54    87        ASSIGN                                                       !11, ~69
   66    88        INIT_METHOD_CALL                                             !10, 'index'
         89        SEND_VAR_EX                                                  !11
         90        DO_FCALL                                          0  $74     
         91        ASSIGN                                                       !12, $74
   69    92    > > JMPZ                                                         !0, ->102
   70    93    >   NEW                                                  $76     'DateTime'
         94        DO_FCALL                                          0          
         95        ASSIGN                                                       !9, $76
   71    96        INIT_METHOD_CALL                                             !9, 'format'
         97        SEND_VAL_EX                                                  'H%3Ai%3As%3Au'
         98        DO_FCALL                                          0  $79     
         99        CONCAT                                               ~80     'after+create+connection%3A+', $79
        100        ECHO                                                         ~80
   72   101        ECHO                                                         '%3Cbr+%2F%3E'
   75   102    >   ASSIGN_DIM                                                   !13, 'from'
        103        OP_DATA                                                      !6
   76   104        ASSIGN_DIM                                                   !13, 'size'
        105        OP_DATA                                                      !7
   78   106        IS_EQUAL                                                     !8, 'mishne'
        107      > JMPZ                                                         ~83, ->116
   79   108    >   IS_EQUAL                                                     !2, '0'
        109      > JMPZ                                                         ~85, ->112
        110    >   QM_ASSIGN                                            ~86     'rambam_nosah_index'
        111      > JMP                                                          ->113
        112    >   QM_ASSIGN                                            ~86     'rambam_beur_index'
        113    >   ASSIGN_DIM                                                   !13, 'index'
        114        OP_DATA                                                      ~86
   78   115      > JMP                                                          ->125
   80   116    >   IS_EQUAL                                                     !8, 'more'
        117      > JMPZ                                                         ~87, ->125
   81   118    >   IS_EQUAL                                                     !2, '0'
        119      > JMPZ                                                         ~89, ->122
        120    >   QM_ASSIGN                                            ~90     'more_nosah_index'
        121      > JMP                                                          ->123
        122    >   QM_ASSIGN                                            ~90     'more_beur_index'
        123    >   ASSIGN_DIM                                                   !13, 'index'
        124        OP_DATA                                                      ~90
   84   125    >   ASSIGN_DIM                                                   !13, 'type'
        126        OP_DATA                                                      'text'
   85   127        IS_EQUAL                                                     !2, '0'
        128      > JMPZ                                                         ~93, ->131
        129    >   QM_ASSIGN                                            ~94     <array>
        130      > JMP                                                          ->132
        131    >   QM_ASSIGN                                            ~94     <array>
        132    >   ASSIGN_DIM                                                   !13, '_source'
        133        OP_DATA                                                      ~94
   87   134        IS_EQUAL                                                     !2, '0'
        135      > JMPZ                                                         ~97, ->138
   88   136    >   QM_ASSIGN                                            ~98     <array>
        137      > JMP                                                          ->139
   92   138    >   QM_ASSIGN                                            ~98     <array>
   87   139    >   FETCH_DIM_W                                          $95     !13, 'body'
        140        ASSIGN_DIM                                                   $95, 'sort'
   92   141        OP_DATA                                                      ~98
   98   142        FETCH_DIM_W                                          $99     !13, 'body'
        143        ASSIGN_DIM                                                   $99, 'highlight'
   99   144        OP_DATA                                                      <array>
  112   145        IS_EQUAL                                                     !3, '1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13%2C14'
        146      > JMPZ                                                         ~101, ->162
  113   147    >   IS_EQUAL                                                     !5, '1'
        148      > JMPZ                                                         ~102, ->156
  114   149    >   INIT_ARRAY                                           ~106    !4, 'query'
        150        INIT_ARRAY                                           ~107    ~106, 'content'
        151        FETCH_DIM_W                                          $103    !13, 'body'
        152        FETCH_DIM_W                                          $104    $103, 'query'
        153        ASSIGN_DIM                                                   $104, 'match_phrase'
        154        OP_DATA                                                      ~107
  113   155      > JMP                                                          ->161
  116   156    >   INIT_ARRAY                                           ~111    !4, 'content'
        157        FETCH_DIM_W                                          $108    !13, 'body'
        158        FETCH_DIM_W                                          $109    $108, 'query'
        159        ASSIGN_DIM                                                   $109, 'match'
        160        OP_DATA                                                      ~111
  112   161    > > JMP                                                          ->209
  120   162    >   INIT_FCALL                                                   'explode'
        163        SEND_VAL                                                     '%2C'
        164        SEND_VAR                                                     !3
        165        DO_ICALL                                             $112    
        166        ASSIGN                                                       !14, $112
  121   167        FETCH_DIM_W                                          $114    !13, 'body'
        168        FETCH_DIM_W                                          $115    $114, 'query'
        169        FETCH_DIM_W                                          $116    $115, 'bool'
        170        ASSIGN_DIM                                                   $116, 'should'
        171        OP_DATA                                                      <array>
  123   172      > FE_RESET_R                                           $118    !14, ->185
        173    > > FE_FETCH_R                                                   $118, !15, ->185
  124   174    >   INIT_FCALL                                                   'array_push'
        175        FETCH_DIM_W                                          $119    !13, 'body'
        176        FETCH_DIM_W                                          $120    $119, 'query'
        177        FETCH_DIM_W                                          $121    $120, 'bool'
        178        FETCH_DIM_W                                          $122    $121, 'should'
        179        SEND_REF                                                     $122
  125   180        INIT_ARRAY                                           ~123    !15, 'book'
        181        INIT_ARRAY                                           ~124    ~123, 'term'
        182        SEND_VAL                                                     ~124
  124   183        DO_ICALL                                                     
  123   184      > JMP                                                          ->173
        185    >   FE_FREE                                                      $118
  129   186        FETCH_DIM_W                                          $126    !13, 'body'
        187        FETCH_DIM_W                                          $127    $126, 'query'
        188        FETCH_DIM_W                                          $128    $127, 'bool'
        189        ASSIGN_DIM                                                   $128, 'minimum_should_match'
        190        OP_DATA                                                      1
  131   191        IS_EQUAL                                                     !5, '1'
        192      > JMPZ                                                         ~130, ->202
  133   193    >   INIT_ARRAY                                           ~135    !4, 'query'
        194        INIT_ARRAY                                           ~136    ~135, 'content'
        195        INIT_ARRAY                                           ~137    ~136, 'match_phrase'
  132   196        FETCH_DIM_W                                          $131    !13, 'body'
        197        FETCH_DIM_W                                          $132    $131, 'query'
        198        FETCH_DIM_W                                          $133    $132, 'bool'
        199        ASSIGN_DIM                                                   $133, 'must'
  133   200        OP_DATA                                                      ~137
  131   201      > JMP                                                          ->209
  137   202    >   INIT_ARRAY                                           ~142    !4, 'content'
        203        INIT_ARRAY                                           ~143    ~142, 'match'
  136   204        FETCH_DIM_W                                          $138    !13, 'body'
        205        FETCH_DIM_W                                          $139    $138, 'query'
        206        FETCH_DIM_W                                          $140    $139, 'bool'
        207        ASSIGN_DIM                                                   $140, 'must'
  137   208        OP_DATA                                                      ~143
  143   209    > > JMPZ                                                         !0, ->219
  144   210    >   NEW                                                  $144    'DateTime'
        211        DO_FCALL                                          0          
        212        ASSIGN                                                       !9, $144
  145   213        INIT_METHOD_CALL                                             !9, 'format'
        214        SEND_VAL_EX                                                  'H%3Ai%3As%3Au'
        215        DO_FCALL                                          0  $147    
        216        CONCAT                                               ~148    'after+create+request+object%3A+', $147
        217        ECHO                                                         ~148
  146   218        ECHO                                                         '%3Cbr+%2F%3E'
  212   219    >   INIT_METHOD_CALL                                             !10, 'search'
        220        SEND_VAR_EX                                                  !13
        221        DO_FCALL                                          0  $149    
        222        ASSIGN                                                       !16, $149
  214   223      > JMPZ                                                         !0, ->233
  215   224    >   NEW                                                  $151    'DateTime'
        225        DO_FCALL                                          0          
        226        ASSIGN                                                       !9, $151
  216   227        INIT_METHOD_CALL                                             !9, 'format'
        228        SEND_VAL_EX                                                  'H%3Ai%3As%3Au'
        229        DO_FCALL                                          0  $154    
        230        CONCAT                                               ~155    'after+search%3A+', $154
        231        ECHO                                                         ~155
  217   232        ECHO                                                         '%3Cbr+%2F%3E'
  227   233    >   ASSIGN                                                       !17, <array>
  229   234        ASSIGN                                                       !18, 0
  231   235        FETCH_DIM_R                                          ~158    !16, 'hits'
        236        FETCH_DIM_R                                          ~159    ~158, 'hits'
        237      > FE_RESET_R                                           $160    ~159, ->249
        238    > > FE_FETCH_R                                           ~161    $160, !19, ->249
        239    >   ASSIGN                                                       !20, ~161
  233   240        FETCH_DIM_R                                          ~164    !19, 'sort'
        241        INIT_ARRAY                                           ~165    ~164, 'l'
  234   242        FETCH_DIM_R                                          ~166    !19, 'highlight'
        243        FETCH_DIM_R                                          ~167    ~166, 'content'
        244        ADD_ARRAY_ELEMENT                                    ~165    ~167, 'c'
  232   245        ASSIGN_DIM                                                   !17, !18
  234   246        OP_DATA                                                      ~165
  236   247        PRE_INC                                                      !18
  231   248      > JMP                                                          ->238
        249    >   FE_FREE                                                      $160
  239   250      > JMPZ                                                         !0, ->260
  240   251    >   NEW                                                  $169    'DateTime'
        252        DO_FCALL                                          0          
        253        ASSIGN                                                       !9, $169
  241   254        INIT_METHOD_CALL                                             !9, 'format'
        255        SEND_VAL_EX                                                  'H%3Ai%3As%3Au'
        256        DO_FCALL                                          0  $172    
        257        CONCAT                                               ~173    'after+create+result+object%3A+', $172
        258        ECHO                                                         ~173
  242   259        ECHO                                                         '%3Cbr+%2F%3E'
  246   260    >   FETCH_DIM_R                                          ~175    !16, 'hits'
        261        FETCH_DIM_R                                          ~176    ~175, 'total'
        262        FETCH_DIM_R                                          ~177    ~176, 'value'
        263        INIT_ARRAY                                           ~178    ~177, 'total'
  247   264        ADD_ARRAY_ELEMENT                                    ~178    !6, 'from'
  248   265        ADD_ARRAY_ELEMENT                                    ~178    !7, 'size'
  245   266        ASSIGN_DIM                                                   !21, 'paging'
  248   267        OP_DATA                                                      ~178
  250   268        ASSIGN_DIM                                                   !21, 'maches'
        269        OP_DATA                                                      !17
  253   270        INIT_FCALL                                                   'print_r'
        271        INIT_FCALL                                                   'json_encode'
        272        SEND_VAR                                                     !21
        273        SEND_VAL                                                     346
        274        DO_ICALL                                             $180    
        275        SEND_VAR                                                     $180
        276        DO_ICALL                                                     
  257   277      > JMPZ                                                         !0, ->287
  258   278    >   NEW                                                  $182    'DateTime'
        279        DO_FCALL                                          0          
        280        ASSIGN                                                       !9, $182
  259   281        INIT_METHOD_CALL                                             !9, 'format'
        282        SEND_VAL_EX                                                  'H%3Ai%3As%3Au'
        283        DO_FCALL                                          0  $185    
        284        CONCAT                                               ~186    'after+print+result+object%3A+', $185
        285        ECHO                                                         ~186
  260   286        ECHO                                                         '%3Cbr+%2F%3E'
        287    > > JMP                                                          ->289
  263   288  E > > CATCH                                           last         'Exception'
  265   289    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
129.66 ms | 520 KiB | 15 Q