3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = strip_tags($row['text']); $text_ohne_leerzeichen = trim($text); $text_utf8 = utf8_decode($text_ohne_leerzeichen); $text_decode = html_entity_decode($text_utf8); $text_replaced = ereg_replace(' ', '', $text_decode); $text_replaced = str_replace("&#39;", "'", $text_replaced); /* $text_replaced = str_replace("ü", "ü", $text_replaced); $text_replaced = str_replace("ä", "ä", $text_replaced); $text_replaced = str_replace("ö", "ö", $text_replaced); $text_replaced = str_replace("Â", "", $text_replaced); $text_replaced = str_replace("é", "é", $text_replaced);*/ $replace = array( 'ü'=>'ü', 'ä'=>'ä', 'ö'=>'ö', 'Ö'=>'Ö', 'ß'=>'ß', 'à '=>'à', 'á'=>'á', 'â'=>'â', 'ã'=>'ã', 'ù'=>'ù', 'ú'=>'ú', 'û'=>'û', 'Ù'=>'Ù', 'Ú'=>'Ú', 'Û'=>'Û', 'Ãœ'=>'Ü', 'ò'=>'ò', 'ó'=>'ó', 'ô'=>'ô', 'è'=>'è', 'é'=>'é', 'ê'=>'ê', 'ë'=>'ë', 'À'=>'À', 'Á'=>'Á', 'Â'=>'Â', 'Ã'=>'Ã', 'Ä'=>'Ä', 'Ã…'=>'Å', 'Ç'=>'Ç', 'È'=>'È', 'É'=>'É', 'Ê'=>'', 'Ë'=>'Ë', 'ÃŒ'=>'Ì', 'Í'=>'Í', 'ÃŽ'=>'Î', 'Ï'=>'Ï', 'Ñ'=>'Ñ', 'Ã’'=>'Ò', 'Ó'=>'Ó', 'Ô'=>'Ô', 'Õ'=>'Õ', 'Ø'=>'Ø', 'Ã¥'=>'å', 'æ'=>'æ', 'ç'=>'ç', 'ì'=>'ì', 'í'=>'í', 'î'=>'î', 'ï'=>'ï', 'ð'=>'ð', 'ñ'=>'ñ', 'õ'=>'õ', 'ø'=>'ø', 'ý'=>'ý', 'ÿ'=>'ÿ', '€'=>'€' ); foreach ($replace as $key => $value) { $text_replaced = str_replace($key, $value, $text_replaced); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 31, Position 2 = 40
Branch analysis from position: 31
2 jumps found. (Code = 78) Position 1 = 32, Position 2 = 40
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
filename:       /in/B8brl
function name:  (null)
number of ops:  42
compiled vars:  !0 = $text, !1 = $row, !2 = $text_ohne_leerzeichen, !3 = $text_utf8, !4 = $text_decode, !5 = $text_replaced, !6 = $replace, !7 = $value, !8 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strip_tags'
          1        FETCH_DIM_R                                      ~9      !1, 'text'
          2        SEND_VAL                                                 ~9
          3        DO_ICALL                                         $10     
          4        ASSIGN                                                   !0, $10
    4     5        INIT_FCALL                                               'trim'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $12     
          8        ASSIGN                                                   !2, $12
    5     9        INIT_FCALL                                               'utf8_decode'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $14     
         12        ASSIGN                                                   !3, $14
    6    13        INIT_FCALL                                               'html_entity_decode'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $16     
         16        ASSIGN                                                   !4, $16
    7    17        INIT_FCALL_BY_NAME                                       'ereg_replace'
         18        SEND_VAL_EX                                              '%09'
         19        SEND_VAL_EX                                              ''
         20        SEND_VAR_EX                                              !4
         21        DO_FCALL                                      0  $18     
         22        ASSIGN                                                   !5, $18
    8    23        INIT_FCALL                                               'str_replace'
         24        SEND_VAL                                                 '%26%2339%3B'
         25        SEND_VAL                                                 '%27'
         26        SEND_VAR                                                 !5
         27        DO_ICALL                                         $20     
         28        ASSIGN                                                   !5, $20
   15    29        ASSIGN                                                   !6, <array>
   76    30      > FE_RESET_R                                       $23     !6, ->40
         31    > > FE_FETCH_R                                       ~24     $23, !7, ->40
         32    >   ASSIGN                                                   !8, ~24
   77    33        INIT_FCALL                                               'str_replace'
         34        SEND_VAR                                                 !8
         35        SEND_VAR                                                 !7
         36        SEND_VAR                                                 !5
         37        DO_ICALL                                         $26     
         38        ASSIGN                                                   !5, $26
   76    39      > JMP                                                      ->31
         40    >   FE_FREE                                                  $23
   78    41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.42 ms | 1400 KiB | 23 Q