3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "Hai FIELDMERGE_nickname, Your city is FIELDMERGE_city and your gender is FIELDMERGE_gender. webinar title is FIELDMERGE_extraparam1 Again your name is FIELDMERGE_nickname"; $arr = explode("FIELDMERGE_", $data); array_shift($arr); foreach($arr as $e) { $a = explode(" ", $e); $res[] = preg_replace('/[^a-z\d]/i', '', array_shift($a)); //$res[] = trim(array_shift($a)); } print_r($res);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 27
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 27
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/Oa1sn
function name:  (null)
number of ops:  32
compiled vars:  !0 = $data, !1 = $arr, !2 = $e, !3 = $a, !4 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hai+FIELDMERGE_nickname%2C%0A++++Your+city+is++FIELDMERGE_city+and+your+gender+is+FIELDMERGE_gender.+webinar+title+is+FIELDMERGE_extraparam1%0A++++Again+your+name+is+FIELDMERGE_nickname'
    7     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 'FIELDMERGE_'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    8     6        INIT_FCALL                                               'array_shift'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
    9     9      > FE_RESET_R                                       $9      !1, ->27
         10    > > FE_FETCH_R                                               $9, !2, ->27
   10    11    >   INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '+'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
   11    16        INIT_FCALL                                               'preg_replace'
         17        SEND_VAL                                                 '%2F%5B%5Ea-z%5Cd%5D%2Fi'
         18        SEND_VAL                                                 ''
         19        INIT_FCALL                                               'array_shift'
         20        SEND_REF                                                 !3
         21        DO_ICALL                                         $13     
         22        SEND_VAR                                                 $13
         23        DO_ICALL                                         $14     
         24        ASSIGN_DIM                                               !4
         25        OP_DATA                                                  $14
    9    26      > JMP                                                      ->10
         27    >   FE_FREE                                                  $9
   14    28        INIT_FCALL                                               'print_r'
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.98 ms | 1014 KiB | 17 Q