3v4l.org

run code in 300+ PHP versions simultaneously
<?php // testutf8.php function dataEcho( $parser, $data ) { echo "$data"; } $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, 'iso-8859-1'); xml_set_character_data_handler( $parser, 'dataEcho' ); xml_parse( $parser, '<?xml version="1.0" encoding="iso-8859-1"?><svg xmlns="http://www.w3.org/2000/svg"><title>dÜST</title></svg>' ); echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8UtWi
function name:  (null)
number of ops:  18
compiled vars:  !0 = $parser
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'xml_parser_create'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
    7     3        INIT_FCALL                                               'xml_parser_set_option'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 2
          6        SEND_VAL                                                 'iso-8859-1'
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'xml_set_character_data_handler'
    9     9        SEND_VAR                                                 !0
   10    10        SEND_VAL                                                 'dataEcho'
         11        DO_ICALL                                                 
   12    12        INIT_FCALL                                               'xml_parse'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22iso-8859-1%22%3F%3E%3Csvg+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3Ed%C3%9CST%3C%2Ftitle%3E%3C%2Fsvg%3E'
         15        DO_ICALL                                                 
   13    16        ECHO                                                     '%0A'
         17      > RETURN                                                   1

Function dataecho:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8UtWi
function name:  dataEcho
number of ops:  5
compiled vars:  !0 = $parser, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        CAST                                          6  ~2      !1
          3        ECHO                                                     ~2
    5     4      > RETURN                                                   null

End of function dataecho

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.84 ms | 1395 KiB | 21 Q