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 = '/'; $regexp.= '(' . implode('|', $stopwords) . ')' . '/'; var_dump($regexp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1dL0L
function name:  (null)
number of ops:  15
compiled vars:  !0 = $text, !1 = $stopwords, !2 = $regexp
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        ASSIGN                                                   !2, '%2F'
   11     3        INIT_FCALL                                               'implode'
          4        SEND_VAL                                                 '%7C'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        CONCAT                                           ~7      '%28', $6
          8        CONCAT                                           ~8      ~7, '%29'
          9        CONCAT                                           ~9      ~8, '%2F'
         10        ASSIGN_OP                                     8          !2, ~9
   13    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.93 ms | 1385 KiB | 17 Q