3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement( '<DOM> <TAB gruppo="ID1" url="http://ltw1310.web.unibo.it"></TAB> <TAB gruppo="ID2" url="http://ltw1314.web.unibo.it"></TAB> </DOM>'); $serverComprati = array(); $count=0; foreach ($xml->children() as $second_level) { $second_level->attributes()->gruppo; $url = $second_level->attributes()->url; if($url != ""){ $serverComprati[$count]=$url; } $count=$count+1; } echo $serverComprati[$count];
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 25
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 25
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 22
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/G4WeV
function name:  (null)
number of ops:  29
compiled vars:  !0 = $xml, !1 = $serverComprati, !2 = $count, !3 = $second_level, !4 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $5      'SimpleXMLElement'
    4     1        SEND_VAL_EX                                              '%3CDOM%3E%0A%3CTAB+gruppo%3D%22ID1%22+url%3D%22http%3A%2F%2Fltw1310.web.unibo.it%22%3E%3C%2FTAB%3E+%0A++%3CTAB+gruppo%3D%22ID2%22+url%3D%22http%3A%2F%2Fltw1314.web.unibo.it%22%3E%3C%2FTAB%3E%0A%3C%2FDOM%3E'
          2        DO_FCALL                                      0          
    3     3        ASSIGN                                                   !0, $5
    8     4        ASSIGN                                                   !1, <array>
    9     5        ASSIGN                                                   !2, 0
   10     6        INIT_METHOD_CALL                                         !0, 'children'
          7        DO_FCALL                                      0  $10     
          8      > FE_RESET_R                                       $11     $10, ->25
          9    > > FE_FETCH_R                                               $11, !3, ->25
   11    10    >   INIT_METHOD_CALL                                         !3, 'attributes'
         11        DO_FCALL                                      0  $12     
         12        FETCH_OBJ_R                                      ~13     $12, 'gruppo'
         13        FREE                                                     ~13
   12    14        INIT_METHOD_CALL                                         !3, 'attributes'
         15        DO_FCALL                                      0  $14     
         16        FETCH_OBJ_R                                      ~15     $14, 'url'
         17        ASSIGN                                                   !4, ~15
   13    18        IS_NOT_EQUAL                                             !4, ''
         19      > JMPZ                                                     ~17, ->22
   14    20    >   ASSIGN_DIM                                               !1, !2
         21        OP_DATA                                                  !4
   16    22    >   ADD                                              ~19     !2, 1
         23        ASSIGN                                                   !2, ~19
   10    24      > JMP                                                      ->9
         25    >   FE_FREE                                                  $11
   18    26        FETCH_DIM_R                                      ~21     !1, !2
         27        ECHO                                                     ~21
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.3 ms | 1395 KiB | 13 Q