3v4l.org

run code in 500+ PHP versions simultaneously
<?php function debugSousBalises($p_oBalise){ for($i = 0; $i < $p_oBalise->childNodes->length; ++$i){ $oNode = $p_oBalise->childNodes->item($i); //var_dump($oNode); switch(get_class($oNode)){ case 'DOMText': echo $oNode->wholeText; break; case 'DOMElement': echo $oNode->tagName; break; default: echo get_class($oNode).' pas encore pris en compte'; } } } $xml = new DOMDocument(); $xml->loadXml('<balise> <ata>2013-08-20T17:13:25</ata> <atd>2013-08-20T17:15:03</atd> <callSequence>1</callSequence> <actualCallSequence>2</actualCallSequence> <clauseInfo> <clause>LIV_CFM</clause> <description>Conforme</description> </clauseInfo> </balise>'); debugSousBalises($xml->documentElement); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VmfC7
function name:  (null)
number of ops:  11
compiled vars:  !0 = $xml
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   22     0  E >   NEW                                                  $1      'DOMDocument'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   23     3        INIT_METHOD_CALL                                             !0, 'loadXml'
          4        SEND_VAL_EX                                                  '%3Cbalise%3E%0A++%3Cata%3E2013-08-20T17%3A13%3A25%3C%2Fata%3E%0A++%3Catd%3E2013-08-20T17%3A15%3A03%3C%2Fatd%3E%0A++%3CcallSequence%3E1%3C%2FcallSequence%3E%0A++%3CactualCallSequence%3E2%3C%2FactualCallSequence%3E%0A++%3CclauseInfo%3E%0A++++%3Cclause%3ELIV_CFM%3C%2Fclause%3E%0A++++%3Cdescription%3EConforme%3C%2Fdescription%3E%0A++%3C%2FclauseInfo%3E%0A%3C%2Fbalise%3E'
          5        DO_FCALL                                          0          
   35     6        INIT_FCALL                                                   'debugsousbalises'
          7        FETCH_OBJ_R                                          ~5      !0, 'documentElement'
          8        SEND_VAL                                                     ~5
          9        DO_FCALL                                          0          
   36    10      > RETURN                                                       1

Function debugsousbalises:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 3
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
4 jumps found. (Code = 188) Position 1 = 15, Position 2 = 18, Position 3 = 21, Position 4 = 10
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 3
Branch analysis from position: 30
Branch analysis from position: 3
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 3
Branch analysis from position: 30
Branch analysis from position: 3
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 18
Branch analysis from position: 15
filename:       /in/VmfC7
function name:  debugSousBalises
number of ops:  31
compiled vars:  !0 = $p_oBalise, !1 = $i, !2 = $oNode
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
    4     1        ASSIGN                                                       !1, 0
          2      > JMP                                                          ->26
    5     3    >   FETCH_OBJ_R                                          ~4      !0, 'childNodes'
          4        INIT_METHOD_CALL                                             ~4, 'item'
          5        SEND_VAR_EX                                                  !1
          6        DO_FCALL                                          0  $5      
          7        ASSIGN                                                       !2, $5
    7     8        GET_CLASS                                            ~7      !2
          9      > SWITCH_STRING                                                ~7, [ 'DOMText':->15, 'DOMElement':->18, ], ->21
    8    10    >   CASE                                                         ~7, 'DOMText'
         11      > JMPNZ                                                        ~8, ->15
   11    12    >   CASE                                                         ~7, 'DOMElement'
         13      > JMPNZ                                                        ~8, ->18
         14    > > JMP                                                          ->21
    9    15    >   FETCH_OBJ_R                                          ~9      !2, 'wholeText'
         16        ECHO                                                         ~9
   10    17      > JMP                                                          ->24
   12    18    >   FETCH_OBJ_R                                          ~10     !2, 'tagName'
         19        ECHO                                                         ~10
   13    20      > JMP                                                          ->24
   15    21    >   GET_CLASS                                            ~11     !2
         22        CONCAT                                               ~12     ~11, '+pas+encore+pris+en+compte'
         23        ECHO                                                         ~12
         24    >   FREE                                                         ~7
    4    25        PRE_INC                                                      !1
         26    >   FETCH_OBJ_R                                          ~14     !0, 'childNodes'
         27        FETCH_OBJ_R                                          ~15     ~14, 'length'
         28        IS_SMALLER                                                   !1, ~15
         29      > JMPNZ                                                        ~16, ->3
   19    30    > > RETURN                                                       null

End of function debugsousbalises

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.41 ms | 3275 KiB | 14 Q