3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = __FILE__; libxml_disable_entity_loader(true); $reader = new \XMLReader(); $reader->open($filename); libxml_disable_entity_loader(true); $dom = new \DOMDocument(); $dom->load($filename);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7n1J8
function name:  (null)
number of ops:  20
compiled vars:  !0 = $filename, !1 = $reader, !2 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fin%2F7n1J8'
    4     1        INIT_FCALL                                               'libxml_disable_entity_loader'
          2        SEND_VAL                                                 <true>
          3        DO_FCALL_BY_NAME                                         
    5     4        NEW                                              $5      'XMLReader'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
    6     7        INIT_METHOD_CALL                                         !1, 'open'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    8    10        INIT_FCALL                                               'libxml_disable_entity_loader'
         11        SEND_VAL                                                 <true>
         12        DO_FCALL_BY_NAME                                         
    9    13        NEW                                              $10     'DOMDocument'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !2, $10
   10    16        INIT_METHOD_CALL                                         !2, 'load'
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0          
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.22 ms | 1395 KiB | 15 Q