3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "<h3>hello</h3>this is my test and <h3><span>bye</span></h3>"; $arr = preg_split('/(<h3>.*?<\/h3>)/', $str, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DVRpr
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Ch3%3Ehello%3C%2Fh3%3Ethis+is+my+test+and+%3Ch3%3E%3Cspan%3Ebye%3C%2Fspan%3E%3C%2Fh3%3E'
    4     1        INIT_FCALL                                                   'preg_split'
          2        SEND_VAL                                                     '%2F%28%3Ch3%3E.%2A%3F%3C%5C%2Fh3%3E%29%2F'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     -1
          5        SEND_VAL                                                     3
          6        DO_ICALL                                             $3      
          7        ASSIGN                                                       !1, $3
    5     8        INIT_FCALL                                                   'print_r'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.94 ms | 2618 KiB | 15 Q