3v4l.org

run code in 300+ 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 "T:", $oNode->wholeText; break; case 'DOMElement': echo "E:", $oNode->tagName.' : '.$oNode->nodeValue; break; default: echo "D:", 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/2gHde
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 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 3
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
4 jumps found. (Code = 188) Position 1 = 15, Position 2 = 19, Position 3 = 26, Position 4 = 10
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 3
Branch analysis from position: 36
Branch analysis from position: 3
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 3
Branch analysis from position: 36
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 = 19
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 19
Branch analysis from position: 15
filename:       /in/2gHde
function name:  debugSousBalises
number of ops:  37
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                                                      ->32
    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':->19, ], ->26
    8    10    >   CASE                                                     ~7, 'DOMText'
         11      > JMPNZ                                                    ~8, ->15
   11    12    >   CASE                                                     ~7, 'DOMElement'
         13      > JMPNZ                                                    ~8, ->19
         14    > > JMP                                                      ->26
    9    15    >   ECHO                                                     'T%3A'
         16        FETCH_OBJ_R                                      ~9      !2, 'wholeText'
         17        ECHO                                                     ~9
   10    18      > JMP                                                      ->30
   12    19    >   ECHO                                                     'E%3A'
         20        FETCH_OBJ_R                                      ~10     !2, 'tagName'
         21        CONCAT                                           ~11     ~10, '+%3A+'
         22        FETCH_OBJ_R                                      ~12     !2, 'nodeValue'
         23        CONCAT                                           ~13     ~11, ~12
         24        ECHO                                                     ~13
   13    25      > JMP                                                      ->30
   15    26    >   ECHO                                                     'D%3A'
         27        GET_CLASS                                        ~14     !2
         28        CONCAT                                           ~15     ~14, '+pas+encore+pris+en+compte'
         29        ECHO                                                     ~15
         30    >   FREE                                                     ~7
    4    31        PRE_INC                                                  !1
         32    >   FETCH_OBJ_R                                      ~17     !0, 'childNodes'
         33        FETCH_OBJ_R                                      ~18     ~17, 'length'
         34        IS_SMALLER                                               !1, ~18
         35      > JMPNZ                                                    ~19, ->3
   19    36    > > RETURN                                                   null

End of function debugsousbalises

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.92 ms | 1403 KiB | 14 Q