3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml_test = '<?xml version="1.0" encoding="utf-8"?><test></test>'; $parser = xml_parser_create(); xml_set_character_data_handler($parser, 'trim'); xml_set_character_data_handler($parser, ''); xml_set_processing_instruction_handler($parser, 'trim'); xml_set_processing_instruction_handler($parser, null); xml_parse($parser, $xml_test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AdVej
function name:  (null)
number of ops:  25
compiled vars:  !0 = $xml_test, !1 = $parser
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%3Ctest%3E%3C%2Ftest%3E'
    4     1        INIT_FCALL                                               'xml_parser_create'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !1, $3
    5     4        INIT_FCALL                                               'xml_set_character_data_handler'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 'trim'
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'xml_set_character_data_handler'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 ''
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'xml_set_processing_instruction_handler'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 'trim'
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'xml_set_processing_instruction_handler'
         17        SEND_VAR                                                 !1
         18        SEND_VAL                                                 null
         19        DO_ICALL                                                 
   10    20        INIT_FCALL                                               'xml_parse'
         21        SEND_VAR                                                 !1
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.04 ms | 1075 KiB | 17 Q