3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $str = "Coss&eacute; René"; echo "\n"; echo $str = htmlentities($str,ENT_XML1,UTF-8); echo "\n"; echo $str = html_entity_decode($str); echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D4Cv6
function name:  (null)
number of ops:  20
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'
          1        ECHO                                                     ~1
    3     2        ECHO                                                     '%0A'
    4     3        INIT_FCALL                                               'htmlentities'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 16
          6        FETCH_CONSTANT                                   ~2      'UTF'
          7        SUB                                              ~3      ~2, 8
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                         $4      
         10        ASSIGN                                           ~5      !0, $4
         11        ECHO                                                     ~5
    5    12        ECHO                                                     '%0A'
    6    13        INIT_FCALL                                               'html_entity_decode'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        ASSIGN                                           ~7      !0, $6
         17        ECHO                                                     ~7
    7    18        ECHO                                                     '%0A'
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.62 ms | 1386 KiB | 17 Q