3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = "i want to show you my youtube channel : [youtube id=12341234] and my instagram account : [instagram id=myingaccount213]"; preg_match_all("~\h*(.*?\[[^][]*])~", $s, $matches); print_r($matches[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ASnWi
function name:  (null)
number of ops:  11
compiled vars:  !0 = $s, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'i+want+to+show+you+my+youtube+channel+%3A+%5Byoutube+id%3D12341234%5D+and+my+instagram+account+%3A+%5Binstagram+id%3Dmyingaccount213%5D'
    5     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%7E%5Ch%2A%28.%2A%3F%5C%5B%5B%5E%5D%5B%5D%2A%5D%29%7E'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    6     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.5.0


preferences:
168.52 ms | 2191 KiB | 15 Q