3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
301.62 ms | 1394 KiB | 18 Q