3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ConvertSimbols($var, $ConvertQuotes = 0) { if ($ConvertQuotes > 0) { $var = htmlentities($var, ENT_NOQUOTES, 'UTF-8'); $var = str_replace('\"', '', $var); $var = str_replace("\'", '', $var); } else { $var = htmlentities($var, ENT_QUOTES, 'UTF-8'); } return $var; } $message = ConvertSimbols("Balen\u00ed<\/span>Metry<\/span>"); echo $message;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WoLCq
function name:  (null)
number of ops:  6
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'convertsimbols'
          1        SEND_VAL                                                 'Balen%5Cu00ed%3C%5C%2Fspan%3EMetry%3C%5C%2Fspan%3E'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
   13     4        ECHO                                                     !0
          5      > RETURN                                                   1

Function convertsimbols:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 23
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WoLCq
function name:  ConvertSimbols
number of ops:  31
compiled vars:  !0 = $var, !1 = $ConvertQuotes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
    3     2        IS_SMALLER                                               0, !1
          3      > JMPZ                                                     ~2, ->23
    4     4    >   INIT_FCALL                                               'htmlentities'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 'UTF-8'
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
    5    10        INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 '%5C%22'
         12        SEND_VAL                                                 ''
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        ASSIGN                                                   !0, $5
    6    16        INIT_FCALL                                               'str_replace'
         17        SEND_VAL                                                 '%5C%27'
         18        SEND_VAL                                                 ''
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $7      
         21        ASSIGN                                                   !0, $7
         22      > JMP                                                      ->29
    8    23    >   INIT_FCALL                                               'htmlentities'
         24        SEND_VAR                                                 !0
         25        SEND_VAL                                                 3
         26        SEND_VAL                                                 'UTF-8'
         27        DO_ICALL                                         $9      
         28        ASSIGN                                                   !0, $9
   10    29    > > RETURN                                                   !0
   11    30*     > RETURN                                                   null

End of function convertsimbols

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.78 ms | 1403 KiB | 18 Q