3v4l.org

run code in 300+ PHP versions simultaneously
<?php function start_elem($parser,$name,$attribs) { echo "<$name>"; } function end_elem($parser,$name) { echo "</$name>"; } $parser=xml_parser_create(); xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); xml_set_element_handler($parser,"start_elem","end_elem"); $buf = '<F>'; echo xml_parse($parser,$buf,strlen($buf)==0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/56SZo
function name:  (null)
number of ops:  23
compiled vars:  !0 = $parser, !1 = $buf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'xml_parser_create'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
   11     3        INIT_FCALL                                               'xml_parser_set_option'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 0
          7        DO_ICALL                                                 
   12     8        INIT_FCALL                                               'xml_set_element_handler'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'start_elem'
         11        SEND_VAL                                                 'end_elem'
         12        DO_ICALL                                                 
   13    13        ASSIGN                                                   !1, '%3CF%3E'
   14    14        INIT_FCALL                                               'xml_parse'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !1
         17        STRLEN                                           ~7      !1
         18        IS_EQUAL                                         ~8      ~7, 0
         19        SEND_VAL                                                 ~8
         20        DO_ICALL                                         $9      
         21        ECHO                                                     $9
         22      > RETURN                                                   1

Function start_elem:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/56SZo
function name:  start_elem
number of ops:  8
compiled vars:  !0 = $parser, !1 = $name, !2 = $attribs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    3     3        ROPE_INIT                                     3  ~4      '%3C'
          4        ROPE_ADD                                      1  ~4      ~4, !1
          5        ROPE_END                                      2  ~3      ~4, '%3E'
          6        ECHO                                                     ~3
    4     7      > RETURN                                                   null

End of function start_elem

Function end_elem:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/56SZo
function name:  end_elem
number of ops:  7
compiled vars:  !0 = $parser, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        ROPE_INIT                                     3  ~3      '%3C%2F'
          3        ROPE_ADD                                      1  ~3      ~3, !1
          4        ROPE_END                                      2  ~2      ~3, '%3E'
          5        ECHO                                                     ~2
    8     6      > RETURN                                                   null

End of function end_elem

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.44 ms | 1400 KiB | 21 Q