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'); $initResult = mb_ereg_search_init($text); var_dump($initResult); $totalResult = mb_ereg_search($regexp, "imz"); var_dump($totalResult); var_dump(mb_regex_encoding());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O3RXI
function name:  (null)
number of ops:  36
compiled vars:  !0 = $text, !1 = $stopwords, !2 = $regexp, !3 = $initResult, !4 = $totalResult
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                                         $7      
          6        CONCAT                                           ~8      '%28', $7
          7        CONCAT                                           ~9      ~8, '%29'
          8        ASSIGN                                                   !2, ~9
   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                                               'mb_ereg_search_init'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $13     
         18        ASSIGN                                                   !3, $13
   18    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
   20    22        INIT_FCALL                                               'mb_ereg_search'
         23        SEND_VAR                                                 !2
         24        SEND_VAL                                                 'imz'
         25        DO_ICALL                                         $16     
         26        ASSIGN                                                   !4, $16
   22    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !4
         29        DO_ICALL                                                 
   24    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'mb_regex_encoding'
         32        DO_ICALL                                         $19     
         33        SEND_VAR                                                 $19
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.28 ms | 1396 KiB | 23 Q