3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<div><div><t:p value="varname" /></div></div>'; $dom = new DOMDocument(); $dom->createElementNS('t', 'http://template/'); $dom->loadXML($xml); var_dump($dom);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YKoAg
function name:  (null)
number of ops:  15
compiled vars:  !0 = $xml, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv%3E%3Cdiv%3E%3Ct%3Ap+value%3D%22varname%22+%2F%3E%3C%2Fdiv%3E%3C%2Fdiv%3E'
    5     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    7     4        INIT_METHOD_CALL                                         !1, 'createElementNS'
          5        SEND_VAL_EX                                              't'
          6        SEND_VAL_EX                                              'http%3A%2F%2Ftemplate%2F'
          7        DO_FCALL                                      0          
    9     8        INIT_METHOD_CALL                                         !1, 'loadXML'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0          
   11    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.32 ms | 1394 KiB | 15 Q