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($r = mb_ereg_search_getregs()) { var_dump($r); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 36
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 36
Branch analysis from position: 43
Branch analysis from position: 36
filename:       /in/J0j3U
function name:  (null)
number of ops:  44
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                                                      ->39
   27    36    >   INIT_FCALL                                               'var_dump'
         37        SEND_VAR                                                 !5
         38        DO_ICALL                                                 
   26    39    >   INIT_FCALL                                               'mb_ereg_search_getregs'
         40        DO_ICALL                                         $23     
         41        ASSIGN                                           ~24     !5, $23
         42      > JMPNZ                                                    ~24, ->36
   28    43    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.24 ms | 1400 KiB | 25 Q