3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'test"'; $str = trim($str); $str = preg_replace("#[&].{2,7}[;]#sim", " ", $str); $str = preg_replace("#[()A°^!\"A§\$%&/{(\[)\]=}?AŽ`,;.:\-_\#'~+*]#", " ", $str); $str = preg_replace("#\s+#sim", " ", $str); echo $str; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jSCU2
function name:  (null)
number of ops:  25
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'test%22'
    3     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%23%5B%26%5D.%7B2%2C7%7D%5B%3B%5D%23sim'
          7        SEND_VAL                                                 '+'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    5    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%23%5B%28%29A%C2%B0%5E%21%22A%C2%A7%24%25%26%2F%7B%28%5C%5B%29%5C%5D%3D%7D%3FA%C5%BD%60%2C%3B.%3A%5C-_%5C%23%27%7E%2B%2A%5D%23'
         13        SEND_VAL                                                 '+'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !0, $6
    6    17        INIT_FCALL                                               'preg_replace'
         18        SEND_VAL                                                 '%23%5Cs%2B%23sim'
         19        SEND_VAL                                                 '+'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $8      
         22        ASSIGN                                                   !0, $8
    7    23        ECHO                                                     !0
    8    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.61 ms | 1400 KiB | 17 Q