3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument; $doc->loadXML('<?xml version="1.0" encoding="UTF-8"?> <c:tellervo xmlns:c="http://www.tellervo.org/schema/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tridas="http://www.tridas.org/1.2.2"> <c:request type="create"> <tridas:object> <tridas:title>ppp</tridas:title> <tridas:type normalStd="Tellervo" normalId="1" normal="Site"/> <tridas:genericField name="tellervo.objectLabCode">2222</tridas:genericField> </tridas:object> </c:request> </c:tellervo> '); $children = $doc->documentElement->childNodes; foreach($children as $child) { if($child->nodeType != XML_ELEMENT_NODE) continue; echo $child->nodeName; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/NIbtb
function name:  (null)
number of ops:  20
compiled vars:  !0 = $doc, !1 = $children, !2 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        INIT_METHOD_CALL                                         !0, 'loadXML'
          4        SEND_VAL_EX                                              '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Cc%3Atellervo+xmlns%3Ac%3D%22http%3A%2F%2Fwww.tellervo.org%2Fschema%2F1.0%22+xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22+xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22+xmlns%3Atridas%3D%22http%3A%2F%2Fwww.tridas.org%2F1.2.2%22%3E%0A++%3Cc%3Arequest+type%3D%22create%22%3E%0A%3Ctridas%3Aobject%3E+%3Ctridas%3Atitle%3Eppp%3C%2Ftridas%3Atitle%3E+%3Ctridas%3Atype+normalStd%3D%22Tellervo%22+normalId%3D%221%22+normal%3D%22Site%22%2F%3E+%3Ctridas%3AgenericField+name%3D%22tellervo.objectLabCode%22%3E2222%3C%2Ftridas%3AgenericField%3E+%3C%2Ftridas%3Aobject%3E%0A%3C%2Fc%3Arequest%3E%0A%3C%2Fc%3Atellervo%3E%0A'
          5        DO_FCALL                                      0          
   11     6        FETCH_OBJ_R                                      ~7      !0, 'documentElement'
          7        FETCH_OBJ_R                                      ~8      ~7, 'childNodes'
          8        ASSIGN                                                   !1, ~8
   13     9      > FE_RESET_R                                       $10     !1, ->18
         10    > > FE_FETCH_R                                               $10, !2, ->18
   15    11    >   FETCH_OBJ_R                                      ~11     !2, 'nodeType'
         12        IS_NOT_EQUAL                                             ~11, 1
         13      > JMPZ                                                     ~12, ->15
         14    > > JMP                                                      ->10
   17    15    >   FETCH_OBJ_R                                      ~13     !2, 'nodeName'
         16        ECHO                                                     ~13
   13    17      > JMP                                                      ->10
         18    >   FE_FREE                                                  $10
   18    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.41 ms | 1386 KiB | 13 Q