3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stringHTML= "Software de comunicaciĆ³n"; $html = get_html_translation_table(HTML_ENTITIES, ENT_NOQUOTES); unset($html["<"]); unset($html[">"]); $reemplazar = array_keys($html);print_r($reemplazar); $reemplazo = array_values($html);print_r($reemplazo); echo str_replace($reemplazar, $reemplazo, $stringHTML); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3QvuZ
function name:  (null)
number of ops:  29
compiled vars:  !0 = $stringHTML, !1 = $html, !2 = $reemplazar, !3 = $reemplazo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, 'Software+de+comunicaci%C3%B3n'
    2     1        INIT_FCALL                                               'get_html_translation_table'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    3     6        UNSET_DIM                                                !1, '%3C'
    4     7        UNSET_DIM                                                !1, '%3E'
    5     8        INIT_FCALL                                               'array_keys'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
         12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'array_values'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !3, $10
         19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
    7    22        INIT_FCALL                                               'str_replace'
         23        SEND_VAR                                                 !2
         24        SEND_VAR                                                 !3
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $13     
         27        ECHO                                                     $13
    8    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.62 ms | 1395 KiB | 23 Q