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] ) ) ); $values = explode( "|" , $matches[2][0] ); $tag = $this->values[0]; echo $tag;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/32NnT
function name:  (null)
number of ops:  32
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        ASSIGN                                           ~11     !1, ~10
         18        ECHO                                                     ~11
    6    19        INIT_FCALL                                               'explode'
         20        SEND_VAL                                                 '%7C'
         21        FETCH_DIM_R                                      ~12     !0, 2
         22        FETCH_DIM_R                                      ~13     ~12, 0
         23        SEND_VAL                                                 ~13
         24        DO_ICALL                                         $14     
         25        ASSIGN                                                   !2, $14
    7    26        FETCH_THIS                                       $16     
         27        FETCH_OBJ_R                                      ~17     $16, 'values'
         28        FETCH_DIM_R                                      ~18     ~17, 0
         29        ASSIGN                                                   !3, ~18
    9    30        ECHO                                                     !3
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.87 ms | 1396 KiB | 23 Q