3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p7l3o
function name:  (null)
number of ops:  17
compiled vars:  !0 = $xmlstr, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cza-lord+xmlns%3Aa%3D%22http%3A%2F%2Fexample.org%2Fns%22+xmlns%3At%3D%22http%3A%2F%2Fexample.org%2Ftest%22%3E%0A++++%3Corderid%3Edresden1234%3C%2Forderid%3E%0A++++%3Ccustomer%3Etoot-toot%3C%2Fcustomer%3E%0A++++%3Cpizza%3E%0A++++++++%3Csauce%3Emarinara%3C%2Fsauce%3E%0A++++++++%3Ccrust%3Ethin%3C%2Fcrust%3E%0A++++++++%3Ctoppings%3E%0A++++++++++++%3Ccheese%3Eextra%3C%2Fcheese%3E%0A++++++++++++%3Cveg%3E%0A++++++++++++++++%3Ca%3Aonions%3Eyes%3C%2Fa%3Aonions%3E%0A++++++++++++++++%3Ca%3Apeppers%3Eextra%3C%2Fa%3Apeppers%3E%0A++++++++++++++++%3Ca%3Aolives%3Eno%3C%2Fa%3Aolives%3E%0A++++++++++++%3C%2Fveg%3E%0A++++++++++++%3Cmeat%3E%0A++++++++++++++++%3Ct%3Agroundbeef%3Eyes%3C%2Ft%3Agroundbeef%3E%0A++++++++++++++++%3Ca%3Aham%3Eno%3C%2Fa%3Aham%3E%0A++++++++++++++++%3Csausage%3Eno%3C%2Fsausage%3E%0A++++++++++++%3C%2Fmeat%3E%0A++++++++%3C%2Ftoppings%3E%0A++++%3C%2Fpizza%3E%0A%3C%2Fza-lord%3E++'
   39     1        NEW                                              $3      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   40     5        INIT_FCALL                                               'list_children'
          6        SEND_VAR                                                 !1
          7        INIT_FCALL                                               'array_merge'
          8        SEND_VAL                                                 <array>
          9        INIT_METHOD_CALL                                         !1, 'getNamespaces'
         10        SEND_VAL_EX                                              <true>
         11        DO_FCALL                                      0  $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Function list_children:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 23
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 23
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 22
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 21
Branch analysis from position: 22
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 33
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 23
filename:       /in/p7l3o
function name:  list_children
number of ops:  34
compiled vars:  !0 = $node, !1 = $names, !2 = $children, !3 = $name, !4 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   25     2        ASSIGN                                                   !2, <false>
   26     3      > FE_RESET_R                                       $6      !1, ->23
          4    > > FE_FETCH_R                                               $6, !3, ->23
   27     5    >   INIT_METHOD_CALL                                         !0, 'children'
          6        SEND_VAR_EX                                              !3
          7        DO_FCALL                                      0  $7      
          8        COUNT                                            ~8      $7
          9      > JMPZ                                                     ~8, ->22
   28    10    >   ASSIGN                                                   !2, <true>
   29    11        INIT_METHOD_CALL                                         !0, 'children'
         12        SEND_VAR_EX                                              !3
         13        DO_FCALL                                      0  $10     
         14      > FE_RESET_R                                       $11     $10, ->21
         15    > > FE_FETCH_R                                               $11, !4, ->21
   30    16    >   INIT_FCALL_BY_NAME                                       'list_children'
         17        SEND_VAR_EX                                              !4
         18        SEND_VAR_EX                                              !1
         19        DO_FCALL                                      0          
   29    20      > JMP                                                      ->15
         21    >   FE_FREE                                                  $11
   26    22    > > JMP                                                      ->4
         23    >   FE_FREE                                                  $6
   34    24        BOOL_NOT                                         ~13     !2
         25      > JMPZ                                                     ~13, ->33
   35    26    >   INIT_METHOD_CALL                                         !0, 'getName'
         27        DO_FCALL                                      0  $14     
         28        ROPE_INIT                                     3  ~16     '+%3D+'
         29        ROPE_ADD                                      1  ~16     ~16, !0
         30        ROPE_END                                      2  ~15     ~16, '%0A'
         31        CONCAT                                           ~18     $14, ~15
         32        ECHO                                                     ~18
   37    33    > > RETURN                                                   null

End of function list_children

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
229.06 ms | 974 KiB | 15 Q