3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all( '/\[([\w]*?)\:([\w\W\s]*?)\]/' , '[email:optin|<u>Optin</u>]' , $matches); echo $class = "Frontburner_Tag_" . ucfirst( trim( strtolower( $matches[1][0] ) ) ) . "\n"; $values = explode( "|" , $matches[2][0] ); $tag = $values[0]; echo $tag . "\n"; echo "return" . ucfirst( trim( strtolower( $this->tag ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ndcie
function name:  (null)
number of ops:  45
compiled vars:  !0 = $matches, !1 = $class, !2 = $values, !3 = $tag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match_all'
          1        SEND_VAL                                                 '%2F%5C%5B%28%5B%5Cw%5D%2A%3F%29%5C%3A%28%5B%5Cw%5CW%5Cs%5D%2A%3F%29%5C%5D%2F'
          2        SEND_VAL                                                 '%5Bemail%3Aoptin%7C%3Cu%3EOptin%3C%2Fu%3E%5D'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'ucfirst'
          6        INIT_FCALL                                               'trim'
          7        INIT_FCALL                                               'strtolower'
          8        FETCH_DIM_R                                      ~5      !0, 1
          9        FETCH_DIM_R                                      ~6      ~5, 0
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                         $8      
         14        SEND_VAR                                                 $8
         15        DO_ICALL                                         $9      
         16        CONCAT                                           ~10     'Frontburner_Tag_', $9
         17        CONCAT                                           ~11     ~10, '%0A'
         18        ASSIGN                                           ~12     !1, ~11
         19        ECHO                                                     ~12
    6    20        INIT_FCALL                                               'explode'
         21        SEND_VAL                                                 '%7C'
         22        FETCH_DIM_R                                      ~13     !0, 2
         23        FETCH_DIM_R                                      ~14     ~13, 0
         24        SEND_VAL                                                 ~14
         25        DO_ICALL                                         $15     
         26        ASSIGN                                                   !2, $15
    7    27        FETCH_DIM_R                                      ~17     !2, 0
         28        ASSIGN                                                   !3, ~17
    9    29        CONCAT                                           ~19     !3, '%0A'
         30        ECHO                                                     ~19
   11    31        INIT_FCALL                                               'ucfirst'
         32        INIT_FCALL                                               'trim'
         33        INIT_FCALL                                               'strtolower'
         34        FETCH_THIS                                       $20     
         35        FETCH_OBJ_R                                      ~21     $20, 'tag'
         36        SEND_VAL                                                 ~21
         37        DO_ICALL                                         $22     
         38        SEND_VAR                                                 $22
         39        DO_ICALL                                         $23     
         40        SEND_VAR                                                 $23
         41        DO_ICALL                                         $24     
         42        CONCAT                                           ~25     'return', $24
         43        ECHO                                                     ~25
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.13 ms | 1392 KiB | 23 Q