3v4l.org

run code in 300+ PHP versions simultaneously
<?php $articlecontent = "qwfasdasdqw\n:yeaaa323132[featuredimage]:asd\nWHAAAAT"; preg_match('/\[featuredimage\]:(.*)/', $articlecontent, $match); var_dump($match); if($match) { echo $match[1]; } else { echo "NO MATCH"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pGY7F
function name:  (null)
number of ops:  15
compiled vars:  !0 = $articlecontent, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'qwfasdasdqw%0A%3Ayeaaa323132%5Bfeaturedimage%5D%3Aasd%0AWHAAAAT'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5C%5Bfeaturedimage%5C%5D%3A%28.%2A%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    7     9      > JMPZ                                                     !1, ->13
    8    10    >   FETCH_DIM_R                                      ~5      !1, 1
         11        ECHO                                                     ~5
         12      > JMP                                                      ->14
   10    13    >   ECHO                                                     'NO+MATCH'
   11    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.02 ms | 1394 KiB | 17 Q