3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = <<<'TAG' <message xmlns:blend="http://www.blendlabs.com" xmlns:ulad="http://www.datamodelextension.org/Schema/ULAD" xmlns="http://www.mismo.org/residential/2009/schemas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" targetnamespace="http://www.mismo.org/residential/2009/schemas"> <deal_sets> <deal_set> <deals> <deal> <loans> <loan loanroletype="SubjectLoan" sequencenumber="1" xlink:label="LOAN_1"> <extension> <other> <blend:loan xlink:label="LOAN_1_BLEND_EXTENSION"> <blend:marketing_items> <blend:marketing_item> <blend:marketingtypevalue>DirectMarketingCode</blend:marketingtypevalue> <blend:marketingvalue>google.com</blend:marketingvalue> </blend:marketing_item> </blend:marketing_items> </blend:loan> </other> </extension> </loan> </loans> </deal> </deals> </deal_set> </deal_sets> </message> TAG; $xml = simplexml_load_string($body); $marketing_value = (string) $xml ->children('http://www.mismo.org/residential/2009/schemas') ->deal_sets->deal_set->deals->deal->loans->loan->extension->other ->children('http://www.blendlabs.com') ->loan->marketing_items->marketing_item->marketingvalue; echo $marketing_value;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XlAHR
function name:  (null)
number of ops:  27
compiled vars:  !0 = $body, !1 = $xml, !2 = $marketing_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cmessage+xmlns%3Ablend%3D%22http%3A%2F%2Fwww.blendlabs.com%22%0A+xmlns%3Aulad%3D%22http%3A%2F%2Fwww.datamodelextension.org%2FSchema%2FULAD%22%0A+xmlns%3D%22http%3A%2F%2Fwww.mismo.org%2Fresidential%2F2009%2Fschemas%22%0A+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%0A+xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%0A+targetnamespace%3D%22http%3A%2F%2Fwww.mismo.org%2Fresidential%2F2009%2Fschemas%22%3E%0A++%3Cdeal_sets%3E%0A++++%3Cdeal_set%3E%0A++++++%3Cdeals%3E%0A++++++++%3Cdeal%3E%0A++++++++++%3Cloans%3E%0A++++++++++++%3Cloan+loanroletype%3D%22SubjectLoan%22+sequencenumber%3D%221%22+xlink%3Alabel%3D%22LOAN_1%22%3E%0A++++++++++++++%3Cextension%3E%0A++++++++++++++++%3Cother%3E%0A++++++++++++++++++%3Cblend%3Aloan+xlink%3Alabel%3D%22LOAN_1_BLEND_EXTENSION%22%3E%0A++++++++++++++++++++%3Cblend%3Amarketing_items%3E%0A++++++++++++++++++++++%3Cblend%3Amarketing_item%3E%0A++++++++++++++++++++++++%3Cblend%3Amarketingtypevalue%3EDirectMarketingCode%3C%2Fblend%3Amarketingtypevalue%3E%0A++++++++++++++++++++++++%3Cblend%3Amarketingvalue%3Egoogle.com%3C%2Fblend%3Amarketingvalue%3E%0A++++++++++++++++++++++%3C%2Fblend%3Amarketing_item%3E%0A++++++++++++++++++++%3C%2Fblend%3Amarketing_items%3E%0A++++++++++++++++++%3C%2Fblend%3Aloan%3E%0A++++++++++++++++%3C%2Fother%3E%0A++++++++++++++%3C%2Fextension%3E%0A++++++++++++%3C%2Floan%3E%0A++++++++++%3C%2Floans%3E%0A++++++++%3C%2Fdeal%3E%0A++++++%3C%2Fdeals%3E%0A++++%3C%2Fdeal_set%3E%0A++%3C%2Fdeal_sets%3E%0A%3C%2Fmessage%3E'
   36     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   38     5        INIT_METHOD_CALL                                         !1, 'children'
          6        SEND_VAL_EX                                              'http%3A%2F%2Fwww.mismo.org%2Fresidential%2F2009%2Fschemas'
          7        DO_FCALL                                      0  $6      
   39     8        FETCH_OBJ_R                                      ~7      $6, 'deal_sets'
          9        FETCH_OBJ_R                                      ~8      ~7, 'deal_set'
         10        FETCH_OBJ_R                                      ~9      ~8, 'deals'
         11        FETCH_OBJ_R                                      ~10     ~9, 'deal'
         12        FETCH_OBJ_R                                      ~11     ~10, 'loans'
         13        FETCH_OBJ_R                                      ~12     ~11, 'loan'
         14        FETCH_OBJ_R                                      ~13     ~12, 'extension'
         15        FETCH_OBJ_R                                      ~14     ~13, 'other'
   40    16        INIT_METHOD_CALL                                         ~14, 'children'
         17        SEND_VAL_EX                                              'http%3A%2F%2Fwww.blendlabs.com'
         18        DO_FCALL                                      0  $15     
   41    19        FETCH_OBJ_R                                      ~16     $15, 'loan'
         20        FETCH_OBJ_R                                      ~17     ~16, 'marketing_items'
         21        FETCH_OBJ_R                                      ~18     ~17, 'marketing_item'
         22        FETCH_OBJ_R                                      ~19     ~18, 'marketingvalue'
         23        CAST                                          6  ~20     ~19
   37    24        ASSIGN                                                   !2, ~20
   43    25        ECHO                                                     !2
   44    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.58 ms | 1007 KiB | 14 Q