3v4l.org

run code in 300+ PHP versions simultaneously
<?php function striptagquotes($expr) { $expr = preg_replace ( "/\<\?\=(\\\$.+?)\?\>/s", "\\1", $expr ); $expr = str_replace ( "\\\"", "\"", preg_replace ( "/\[\'([a-zA-Z0-9_\-\.\x7f-\xff]+)\'\]/s", "[\\1]", $expr ) ); return $expr; } $a = '$"eval'; echo striptagquotes($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r9oFQ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, '%24%22eval'
   11     1        INIT_FCALL                                               'striptagquotes'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function striptagquotes:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r9oFQ
function name:  striptagquotes
number of ops:  20
compiled vars:  !0 = $expr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%3C%5C%3F%5C%3D%28%5C%24.%2B%3F%29%5C%3F%5C%3E%2Fs'
          3        SEND_VAL                                                 '%5C1'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        ASSIGN                                                   !0, $1
    5     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '%5C%22'
          9        SEND_VAL                                                 '%22'
         10        INIT_FCALL                                               'preg_replace'
         11        SEND_VAL                                                 '%2F%5C%5B%5C%27%28%5Ba-zA-Z0-9_%5C-%5C.%7F-%FF%5D%2B%29%5C%27%5C%5D%2Fs'
         12        SEND_VAL                                                 '%5B%5C1%5D'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        DO_ICALL                                         $4      
         17        ASSIGN                                                   !0, $4
    6    18      > RETURN                                                   !0
    7    19*     > RETURN                                                   null

End of function striptagquotes

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.38 ms | 1403 KiB | 18 Q