3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'небезнадёжен 😂🤓:https://vk.c'; $string = str_replace( "?", "{%}", $string ); $string = mb_convert_encoding( $string, "ISO-8859-1", "UTF-8" ); $string = mb_convert_encoding( $string, "UTF-8", "ISO-8859-1" ); $string = str_replace( array( "?", "? ", " ?" ), array(""), $string ); $string = str_replace( "{%}", "?", $string ); return trim( $string ); var_dump($string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kaR9t
function name:  (null)
number of ops:  39
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D0%BD%D0%B5%D0%B1%D0%B5%D0%B7%D0%BD%D0%B0%D0%B4%D1%91%D0%B6%D0%B5%D0%BD+%F0%9F%98%82%F0%9F%A4%93%3Ahttps%3A%2F%2Fvk.c'
    5     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%3F'
          3        SEND_VAL                                                 '%7B%25%7D'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     7        INIT_FCALL                                               'mb_convert_encoding'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'ISO-8859-1'
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    7    13        INIT_FCALL                                               'mb_convert_encoding'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 'UTF-8'
         16        SEND_VAL                                                 'ISO-8859-1'
         17        DO_ICALL                                         $6      
         18        ASSIGN                                                   !0, $6
    8    19        INIT_FCALL                                               'str_replace'
         20        SEND_VAL                                                 <array>
         21        SEND_VAL                                                 <array>
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $8      
         24        ASSIGN                                                   !0, $8
    9    25        INIT_FCALL                                               'str_replace'
         26        SEND_VAL                                                 '%7B%25%7D'
         27        SEND_VAL                                                 '%3F'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                         $10     
         30        ASSIGN                                                   !0, $10
   10    31        INIT_FCALL                                               'trim'
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $12     
         34      > RETURN                                                   $12
   12    35*       INIT_FCALL                                               'var_dump'
         36*       SEND_VAR                                                 !0
         37*       DO_ICALL                                                 
         38*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.34 ms | 1396 KiB | 21 Q