3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<green>hello <red>aydin</red> wth</green>'; $matches = array(); preg_match('/(<.+?>)(.+?)(<\/.*>)/', $string, $matches); $fullString = $matches[0]; //$stripped = var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kZnXA
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $matches, !2 = $fullString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%3Cgreen%3Ehello+%3Cred%3Eaydin%3C%2Fred%3E+wth%3C%2Fgreen%3E'
    6     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%28%3C.%2B%3F%3E%29%28.%2B%3F%29%28%3C%5C%2F.%2A%3E%29%2F'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
    8     7        FETCH_DIM_R                                      ~6      !1, 0
          8        ASSIGN                                                   !2, ~6
   13     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.84 ms | 1394 KiB | 17 Q