3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0"?> <rootElem> XML; libxml_use_internal_errors(true); $reader = new XMLReader(); $reader->xml($xml); $reader->read(); print_r(libxml_get_errors());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T2LXe
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $reader
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3CrootElem%3E'
    8     1        INIT_FCALL                                               'libxml_use_internal_errors'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
   10     4        NEW                                              $4      'XMLReader'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $4
   11     7        INIT_METHOD_CALL                                         !1, 'xml'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
   13    10        INIT_METHOD_CALL                                         !1, 'read'
         11        DO_FCALL                                      0          
   15    12        INIT_FCALL                                               'print_r'
         13        INIT_FCALL                                               'libxml_get_errors'
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.32 ms | 1394 KiB | 19 Q