3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[vc_row][vc_column][/vc_column][/vc_row][vc_row][vc_column width="1/2"][vc_column_text css=".vc_custom_1576642149231{margin-bottom: 0px !important;}"]This is the string I want to fetch[/vc_column_text][/vc_column][/vc_row]'; preg_match_all("~\[vc_column_text[^][]*\]\s*(.+?)\[/vc_column_text]~", $string, $matches); print_r($matches[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/irhtr
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Bvc_row%5D%5Bvc_column%5D%5B%2Fvc_column%5D%5B%2Fvc_row%5D%5Bvc_row%5D%5Bvc_column+width%3D%221%2F2%22%5D%5Bvc_column_text+css%3D%22.vc_custom_1576642149231%7Bmargin-bottom%3A+0px+%21important%3B%7D%22%5DThis+is+the+string+I+want+to+fetch%5B%2Fvc_column_text%5D%5B%2Fvc_column%5D%5B%2Fvc_row%5D'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%7E%5C%5Bvc_column_text%5B%5E%5D%5B%5D%2A%5C%5D%5Cs%2A%28.%2B%3F%29%5C%5B%2Fvc_column_text%5D%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'print_r'
          7        FETCH_DIM_R                                      ~4      !1, 1
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
223.43 ms | 997 KiB | 15 Q