3v4l.org

run code in 300+ PHP versions simultaneously
<?php // testutf8.php function dataEcho( $parser, $data ) { echo "$data"; } $parser = xml_parser_create(); 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/cbdi2
function name:  (null)
number of ops:  13
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_set_character_data_handler'
    8     4        SEND_VAR                                                 !0
    9     5        SEND_VAL                                                 'dataEcho'
          6        DO_ICALL                                                 
   11     7        INIT_FCALL                                               'xml_parse'
          8        SEND_VAR                                                 !0
          9        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'
         10        DO_ICALL                                                 
   12    11        ECHO                                                     '%0A'
         12      > RETURN                                                   1

Function dataecho:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cbdi2
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:
146.72 ms | 1395 KiB | 19 Q