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 $child) { $role = $child->attributes(); foreach($child as $key => $value) { if($role == "Language") echo("[".$key ."] ".$value . "<br />"); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 24
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 24
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 22
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 22
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 21
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 22
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/ea2JG
function name:  (null)
number of ops:  26
compiled vars:  !0 = $xml, !1 = $child, !2 = $role, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $5      '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, $5
   11     4        INIT_METHOD_CALL                                         !0, 'children'
          5        DO_FCALL                                      0  $8      
          6      > FE_RESET_R                                       $9      $8, ->24
          7    > > FE_FETCH_R                                               $9, !1, ->24
   13     8    >   INIT_METHOD_CALL                                         !1, 'attributes'
          9        DO_FCALL                                      0  $10     
         10        ASSIGN                                                   !2, $10
   15    11      > FE_RESET_R                                       $12     !1, ->22
         12    > > FE_FETCH_R                                       ~13     $12, !3, ->22
         13    >   ASSIGN                                                   !4, ~13
   17    14        IS_EQUAL                                                 !2, 'Language'
         15      > JMPZ                                                     ~15, ->21
   18    16    >   CONCAT                                           ~16     '%5B', !4
         17        CONCAT                                           ~17     ~16, '%5D+'
         18        CONCAT                                           ~18     ~17, !3
         19        CONCAT                                           ~19     ~18, '%3Cbr+%2F%3E'
         20        ECHO                                                     ~19
   15    21    > > JMP                                                      ->12
         22    >   FE_FREE                                                  $12
   11    23      > JMP                                                      ->7
         24    >   FE_FREE                                                  $9
   21    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.96 ms | 1395 KiB | 13 Q