3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Some test text string with stop-words: stw stw2 stopword stw3stw stopword2c"; $stopwords = array( 'stw', 'stopword' ); $regexp = '(' . implode('|', $stopwords) . ')'; var_dump($regexp); mb_regex_encoding('UTF-8'); var_dump(mb_regex_encoding()); $initResult = mb_ereg_search_init($text); var_dump($initResult); $totalResult = mb_ereg_search($regexp, "imz"); var_dump($totalResult); while(mb_ereg_search()) { $r = mb_ereg_search_getregs(); var_dump($r, mb_ereg_search_getpos()); mb_ereg_search_setpos(mb_ereg_search_getpos()); var_dump(mb_ereg_search_getpos()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 55
Branch analysis from position: 55
2 jumps found. (Code = 44) Position 1 = 58, Position 2 = 36
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 58, Position 2 = 36
Branch analysis from position: 58
Branch analysis from position: 36
filename:       /in/8WbI7
function name:  (null)
number of ops:  59
compiled vars:  !0 = $text, !1 = $stopwords, !2 = $regexp, !3 = $initResult, !4 = $totalResult, !5 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Some+test+text+string+with+stop-words%3A+stw+stw2+stopword+stw3stw+stopword2c'
    5     1        ASSIGN                                                   !1, <array>
   10     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%7C'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $8      
          6        CONCAT                                           ~9      '%28', $8
          7        CONCAT                                           ~10     ~9, '%29'
          8        ASSIGN                                                   !2, ~10
   12     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   14    12        INIT_FCALL                                               'mb_regex_encoding'
         13        SEND_VAL                                                 'UTF-8'
         14        DO_ICALL                                                 
   16    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'mb_regex_encoding'
         17        DO_ICALL                                         $14     
         18        SEND_VAR                                                 $14
         19        DO_ICALL                                                 
   18    20        INIT_FCALL                                               'mb_ereg_search_init'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $16     
         23        ASSIGN                                                   !3, $16
   20    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                                 
   22    27        INIT_FCALL                                               'mb_ereg_search'
         28        SEND_VAR                                                 !2
         29        SEND_VAL                                                 'imz'
         30        DO_ICALL                                         $19     
         31        ASSIGN                                                   !4, $19
   24    32        INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !4
         34        DO_ICALL                                                 
   26    35      > JMP                                                      ->55
   28    36    >   INIT_FCALL                                               'mb_ereg_search_getregs'
         37        DO_ICALL                                         $22     
         38        ASSIGN                                                   !5, $22
   30    39        INIT_FCALL                                               'var_dump'
         40        SEND_VAR                                                 !5
         41        INIT_FCALL                                               'mb_ereg_search_getpos'
         42        DO_ICALL                                         $24     
         43        SEND_VAR                                                 $24
         44        DO_ICALL                                                 
   31    45        INIT_FCALL                                               'mb_ereg_search_setpos'
         46        INIT_FCALL                                               'mb_ereg_search_getpos'
         47        DO_ICALL                                         $26     
         48        SEND_VAR                                                 $26
         49        DO_ICALL                                                 
   32    50        INIT_FCALL                                               'var_dump'
         51        INIT_FCALL                                               'mb_ereg_search_getpos'
         52        DO_ICALL                                         $28     
         53        SEND_VAR                                                 $28
         54        DO_ICALL                                                 
   26    55    >   INIT_FCALL                                               'mb_ereg_search'
         56        DO_ICALL                                         $30     
         57      > JMPNZ                                                    $30, ->36
   33    58    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.32 ms | 1400 KiB | 29 Q