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

End of function debugsousbalises

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.73 ms | 1403 KiB | 14 Q