3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all("/(<([\w]+)[^>]*>)(.*?)(<\/\\2>)/", "<b>example: </b><div align=\"left\">this is a test</div>", $out, PREG_SET_ORDER); echo $out[0][0].", ".$out[0][1]."\n"; echo $out[1][0].", ".$out[1][1]."\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ts28R
function name:  (null)
number of ops:  23
compiled vars:  !0 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match_all'
          1        SEND_VAL                                                 '%2F%28%3C%28%5B%5Cw%5D%2B%29%5B%5E%3E%5D%2A%3E%29%28.%2A%3F%29%28%3C%5C%2F%5C2%3E%29%2F'
    3     2        SEND_VAL                                                 '%3Cb%3Eexample%3A+%3C%2Fb%3E%3Cdiv+align%3D%22left%22%3Ethis+is+a+test%3C%2Fdiv%3E'
    4     3        SEND_REF                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                                 
    5     6        FETCH_DIM_R                                      ~2      !0, 0
          7        FETCH_DIM_R                                      ~3      ~2, 0
          8        CONCAT                                           ~4      ~3, '%2C+'
          9        FETCH_DIM_R                                      ~5      !0, 0
         10        FETCH_DIM_R                                      ~6      ~5, 1
         11        CONCAT                                           ~7      ~4, ~6
         12        CONCAT                                           ~8      ~7, '%0A'
         13        ECHO                                                     ~8
    6    14        FETCH_DIM_R                                      ~9      !0, 1
         15        FETCH_DIM_R                                      ~10     ~9, 0
         16        CONCAT                                           ~11     ~10, '%2C+'
         17        FETCH_DIM_R                                      ~12     !0, 1
         18        FETCH_DIM_R                                      ~13     ~12, 1
         19        CONCAT                                           ~14     ~11, ~13
         20        CONCAT                                           ~15     ~14, '%0A'
         21        ECHO                                                     ~15
    7    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.08 ms | 1395 KiB | 15 Q