3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement( '<catalogo> <server gruppo="MMM Group" url="http://ltw1303.web.cs.unibo.it"/> <server gruppo="DrittiPerDritti" url="http://ltw1306.web.cs.unibo.it"/> <server gruppo="MGSM" url="http://ltw1308.web.cs.unibo.it"/> </catalogo>'); foreach ($xml->children() as $attributi) { echo $attributi->attributes()->gruppo . "<br>"; $remoteUrl = $attributi->attributes()->url . "<br>"; echo $remoteUrl; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 20
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/ui4n5
function name:  (null)
number of ops:  22
compiled vars:  !0 = $xml, !1 = $attributi, !2 = $remoteUrl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'SimpleXMLElement'
    4     1        SEND_VAL_EX                                              '%3Ccatalogo%3E%0A%3Cserver+gruppo%3D%22MMM+Group%22+url%3D%22http%3A%2F%2Fltw1303.web.cs.unibo.it%22%2F%3E%0A%3Cserver+gruppo%3D%22DrittiPerDritti%22+url%3D%22http%3A%2F%2Fltw1306.web.cs.unibo.it%22%2F%3E%0A%3Cserver+gruppo%3D%22MGSM%22+url%3D%22http%3A%2F%2Fltw1308.web.cs.unibo.it%22%2F%3E%0A%3C%2Fcatalogo%3E'
          2        DO_FCALL                                      0          
    3     3        ASSIGN                                                   !0, $3
   10     4        INIT_METHOD_CALL                                         !0, 'children'
          5        DO_FCALL                                      0  $6      
          6      > FE_RESET_R                                       $7      $6, ->20
          7    > > FE_FETCH_R                                               $7, !1, ->20
   11     8    >   INIT_METHOD_CALL                                         !1, 'attributes'
          9        DO_FCALL                                      0  $8      
         10        FETCH_OBJ_R                                      ~9      $8, 'gruppo'
         11        CONCAT                                           ~10     ~9, '%3Cbr%3E'
         12        ECHO                                                     ~10
   12    13        INIT_METHOD_CALL                                         !1, 'attributes'
         14        DO_FCALL                                      0  $11     
         15        FETCH_OBJ_R                                      ~12     $11, 'url'
         16        CONCAT                                           ~13     ~12, '%3Cbr%3E'
         17        ASSIGN                                                   !2, ~13
   13    18        ECHO                                                     !2
   10    19      > JMP                                                      ->7
         20    >   FE_FREE                                                  $7
   15    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.52 ms | 1385 KiB | 13 Q