3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = '[youtube=http://www.youtube.com/watch?v=8SJsL8zDY10&feature=youtube_gdata]'; echo preg_match('#\[youtube[^\]]*?\]#i', $_content, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dvVEs
function name:  (null)
number of ops:  11
compiled vars:  !0 = $_content, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5Byoutube%3Dhttp%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8SJsL8zDY10%26feature%3Dyoutube_gdata%5D'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%23%5C%5Byoutube%5B%5E%5C%5D%5D%2A%3F%5C%5D%23i'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6        ECHO                                                     $3
    5     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:
160.1 ms | 1394 KiB | 17 Q