3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oldstr1='<span style="font-family: Times New Roman; font-size: 12pt;">'; $oldstr2='</span>'; $newstr1='<input type="radio" value="1" name="choice">'; $newstr2="</input>"; $str=$values[$i] ['value']; while (preg_match($oldstr1, $str) && preg_match($oldstr2, $str)) { $str = preg_replace($oldstr1,$newstr1, $str, 1); $str = preg_replace($oldstr2,$newstr2, $str, 1); } echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 46) Position 1 = 27, Position 2 = 32
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 8
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 27, Position 2 = 32
Branch analysis from position: 27
Branch analysis from position: 32
Branch analysis from position: 32
filename:       /in/mpA8D
function name:  (null)
number of ops:  35
compiled vars:  !0 = $oldstr1, !1 = $oldstr2, !2 = $newstr1, !3 = $newstr2, !4 = $str, !5 = $values, !6 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cspan+style%3D%22font-family%3A+Times+New+Roman%3B+font-size%3A+12pt%3B%22%3E'
    3     1        ASSIGN                                                   !1, '%3C%2Fspan%3E'
    4     2        ASSIGN                                                   !2, '%3Cinput+type%3D%22radio%22+value%3D%221%22+name%3D%22choice%22%3E'
    5     3        ASSIGN                                                   !3, '%3C%2Finput%3E'
    6     4        FETCH_DIM_R                                      ~11     !5, !6
          5        FETCH_DIM_R                                      ~12     ~11, 'value'
          6        ASSIGN                                                   !4, ~12
    8     7      > JMP                                                      ->22
   10     8    >   INIT_FCALL                                               'preg_replace'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !4
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $14     
         14        ASSIGN                                                   !4, $14
   11    15        INIT_FCALL                                               'preg_replace'
         16        SEND_VAR                                                 !1
         17        SEND_VAR                                                 !3
         18        SEND_VAR                                                 !4
         19        SEND_VAL                                                 1
         20        DO_ICALL                                         $16     
         21        ASSIGN                                                   !4, $16
    8    22    >   INIT_FCALL                                               'preg_match'
         23        SEND_VAR                                                 !0
         24        SEND_VAR                                                 !4
         25        DO_ICALL                                         $18     
         26      > JMPZ_EX                                          ~19     $18, ->32
         27    >   INIT_FCALL                                               'preg_match'
         28        SEND_VAR                                                 !1
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                         $20     
         31        BOOL                                             ~19     $20
         32    > > JMPNZ                                                    ~19, ->8
   15    33    >   ECHO                                                     !4
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.21 ms | 1396 KiB | 17 Q