3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = '<strong>this test is strong</strong> this text is out tags'; print_r(preg_split('/\s*<strong>(.*?)<\/strong>\s*/s', $text, -1, PREG_SPLIT_NO_EMPTY| PREG_SPLIT_DELIM_CAPTURE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ePsWr
function name:  (null)
number of ops:  11
compiled vars:  !0 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Cstrong%3Ethis+test+is+strong%3C%2Fstrong%3E+this+text+is+out+tags'
    4     1        INIT_FCALL                                                   'print_r'
          2        INIT_FCALL                                                   'preg_split'
          3        SEND_VAL                                                     '%2F%5Cs%2A%3Cstrong%3E%28.%2A%3F%29%3C%5C%2Fstrong%3E%5Cs%2A%2Fs'
          4        SEND_VAR                                                     !0
          5        SEND_VAL                                                     -1
          6        SEND_VAL                                                     3
          7        DO_ICALL                                             $2      
          8        SEND_VAR                                                     $2
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.06 ms | 2034 KiB | 15 Q