3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $str = "Coss&eacute; René &"; echo "\n"; echo htmlentities($str, ENT_XML1, "UTF-8", false); //echo "\n"; //echo htmlentities($str,ENT_XML1,"UTF-8"); echo "\n"; echo $str = html_entity_decode($str); echo "\n"; echo $str = htmlspecialchars(html_entity_decode($str,ENT_XML1)); echo ut8_decode("Coss￿ Ren�");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nni7q
function name:  (null)
number of ops:  31
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                           ~1      !0, 'Coss%26eacute%3B+Ren%C3%A9+%26'
          1        ECHO                                                     ~1
    3     2        ECHO                                                     '%0A'
    4     3        INIT_FCALL                                               'htmlentities'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 16
          6        SEND_VAL                                                 'UTF-8'
          7        SEND_VAL                                                 <false>
          8        DO_ICALL                                         $2      
          9        ECHO                                                     $2
    7    10        ECHO                                                     '%0A'
    8    11        INIT_FCALL                                               'html_entity_decode'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $3      
         14        ASSIGN                                           ~4      !0, $3
         15        ECHO                                                     ~4
    9    16        ECHO                                                     '%0A'
   10    17        INIT_FCALL                                               'htmlspecialchars'
         18        INIT_FCALL                                               'html_entity_decode'
         19        SEND_VAR                                                 !0
         20        SEND_VAL                                                 16
         21        DO_ICALL                                         $5      
         22        SEND_VAR                                                 $5
         23        DO_ICALL                                         $6      
         24        ASSIGN                                           ~7      !0, $6
         25        ECHO                                                     ~7
   12    26        INIT_FCALL_BY_NAME                                       'ut8_decode'
         27        SEND_VAL_EX                                              'Coss%EF%BF%BF+Ren%EF%BF%BD'
         28        DO_FCALL                                      0  $8      
         29        ECHO                                                     $8
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.45 ms | 1395 KiB | 19 Q