3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new DomDocument; $xml->loadXML(' <Billing> <SQL rowcnt="1"> <row no="1"> <col no="1"> 581 </col> <col no="2"> 2011-03-14 </col> <col no="3"> ООО "ДорТех" </col> </row> </SQL> <SQL rowcnt="1"> <row no="1"> <col no="1"> 2016-03-01 </col> <col no="2"> 2016-03-31 </col> </row> </SQL> </Billing> '); //$root=$xml->root(); $sq= $xml->GetElementsByTagname("SQL"); foreach($sq as $SQL) $cnt=$SQL->GetAttribute("rowcnt");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/Skn8Y
function name:  (null)
number of ops:  19
compiled vars:  !0 = $xml, !1 = $sq, !2 = $SQL, !3 = $cnt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'DomDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    3     3        INIT_METHOD_CALL                                         !0, 'loadXML'
          4        SEND_VAL_EX                                              '%0A%3CBilling%3E%0A%3CSQL+rowcnt%3D%221%22%3E%0A%3Crow+no%3D%221%22%3E%0A%3Ccol+no%3D%221%22%3E+++581++%3C%2Fcol%3E%0A%3Ccol+no%3D%222%22%3E+++2011-03-14++%3C%2Fcol%3E%0A%3Ccol+no%3D%223%22%3E+++%D0%9E%D0%9E%D0%9E+%22%D0%94%D0%BE%D1%80%D0%A2%D0%B5%D1%85%22++%3C%2Fcol%3E%0A%3C%2Frow%3E%0A%3C%2FSQL%3E%0A%3CSQL+rowcnt%3D%221%22%3E%0A%3Crow+no%3D%221%22%3E%0A%3Ccol+no%3D%221%22%3E+++2016-03-01++%3C%2Fcol%3E%0A%3Ccol+no%3D%222%22%3E+++2016-03-31++%3C%2Fcol%3E%0A%3C%2Frow%3E%0A%3C%2FSQL%3E%0A%3C%2FBilling%3E%0A'
          5        DO_FCALL                                      0          
   23     6        INIT_METHOD_CALL                                         !0, 'GetElementsByTagname'
          7        SEND_VAL_EX                                              'SQL'
          8        DO_FCALL                                      0  $8      
          9        ASSIGN                                                   !1, $8
   24    10      > FE_RESET_R                                       $10     !1, ->17
         11    > > FE_FETCH_R                                               $10, !2, ->17
   25    12    >   INIT_METHOD_CALL                                         !2, 'GetAttribute'
         13        SEND_VAL_EX                                              'rowcnt'
         14        DO_FCALL                                      0  $11     
         15        ASSIGN                                                   !3, $11
   24    16      > JMP                                                      ->11
         17    >   FE_FREE                                                  $10
   25    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
284.53 ms | 1007 KiB | 13 Q