3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = simplexml_load_string("<segurado> <nomeSegurado>EMERSON DA SILVA BRULL</nomeSegurado> <numeroCpfCnpj>345769118</numeroCpfCnpj> <ordemCnpj>0</ordemCnpj> <digitoCpfCnpj>56</digitoCpfCnpj> <statusSegurado>2</statusSegurado> <corretores> <susep></susep> <susep>V2064F</susep> <susep>P5005J</susep> <susep>P2371J</susep> </corretores> </segurado>"); foreach($result->corretores->susep->children() as $a) var_dump($a); foreach($result->corretores->children() as $a) var_dump($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 14
filename:       /in/hbOua
function name:  (null)
number of ops:  26
compiled vars:  !0 = $result, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'simplexml_load_string'
          1        SEND_VAL                                                 '%3Csegurado%3E%0A%3CnomeSegurado%3EEMERSON+DA+SILVA+BRULL%3C%2FnomeSegurado%3E%0A%3CnumeroCpfCnpj%3E345769118%3C%2FnumeroCpfCnpj%3E%0A%3CordemCnpj%3E0%3C%2FordemCnpj%3E%0A%3CdigitoCpfCnpj%3E56%3C%2FdigitoCpfCnpj%3E%0A%3CstatusSegurado%3E2%3C%2FstatusSegurado%3E%0A%3Ccorretores%3E%0A%3Csusep%3E%3C%2Fsusep%3E%0A%3Csusep%3EV2064F%3C%2Fsusep%3E%0A%3Csusep%3EP5005J%3C%2Fsusep%3E%0A%3Csusep%3EP2371J%3C%2Fsusep%3E%0A%3C%2Fcorretores%3E%0A%3C%2Fsegurado%3E'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
   18     4        FETCH_OBJ_R                                      ~4      !0, 'corretores'
          5        FETCH_OBJ_R                                      ~5      ~4, 'susep'
          6        INIT_METHOD_CALL                                         ~5, 'children'
          7        DO_FCALL                                      0  $6      
          8      > FE_RESET_R                                       $7      $6, ->14
          9    > > FE_FETCH_R                                               $7, !1, ->14
   19    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   18    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $7
   21    15        FETCH_OBJ_R                                      ~9      !0, 'corretores'
         16        INIT_METHOD_CALL                                         ~9, 'children'
         17        DO_FCALL                                      0  $10     
         18      > FE_RESET_R                                       $11     $10, ->24
         19    > > FE_FETCH_R                                               $11, !1, ->24
   22    20    >   INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
   21    23      > JMP                                                      ->19
         24    >   FE_FREE                                                  $11
   22    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.45 ms | 1396 KiB | 17 Q