3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<OperatingProfile> <RegularDayType> <DaysOfWeek> <Tuesday /> <Wednesday /> <Thursday /> <Friday /> </DaysOfWeek> </RegularDayType> <SpecialDaysOperation> <DaysOfNonOperation> <DateRange> <StartDate>2015-12-24</StartDate> <EndDate>2016-01-01</EndDate> </DateRange> </DaysOfNonOperation> </SpecialDaysOperation> <BankHolidayOperation> <DaysOfNonOperation> <AllBankHolidays /> </DaysOfNonOperation> </BankHolidayOperation> </OperatingProfile>'; $simpleXML = simplexml_load_string($xml); $stuff = $simpleXML->{'BankHolidayOperation'}->{'DaysOfNonOperation'}->xpath('//*'); print_r($stuff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4jod5
function name:  (null)
number of ops:  15
compiled vars:  !0 = $xml, !1 = $simpleXML, !2 = $stuff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3COperatingProfile%3E%0A++++++++++++++++++++++++++++++++%3CRegularDayType%3E%0A++++++++++++++++++++++++++++++++++++++++%3CDaysOfWeek%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++%3CTuesday+%2F%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++%3CWednesday+%2F%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++%3CThursday+%2F%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++%3CFriday+%2F%3E%0A++++++++++++++++++++++++++++++++++++++++%3C%2FDaysOfWeek%3E%0A++++++++++++++++++++++++++++++++%3C%2FRegularDayType%3E%0A++++++++++++++++++++++++++++++++%3CSpecialDaysOperation%3E%0A++++++++++++++++++++++++++++++++++++++++%3CDaysOfNonOperation%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++%3CDateRange%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++++++++++%3CStartDate%3E2015-12-24%3C%2FStartDate%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++++++++++%3CEndDate%3E2016-01-01%3C%2FEndDate%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++%3C%2FDateRange%3E%0A++++++++++++++++++++++++++++++++++++++++%3C%2FDaysOfNonOperation%3E%0A++++++++++++++++++++++++++++++++%3C%2FSpecialDaysOperation%3E%0A++++++++++++++++++++++++++++++++%3CBankHolidayOperation%3E%0A++++++++++++++++++++++++++++++++++++++++%3CDaysOfNonOperation%3E%0A++++++++++++++++++++++++++++++++++++++++++++++++%3CAllBankHolidays+%2F%3E%0A++++++++++++++++++++++++++++++++++++++++%3C%2FDaysOfNonOperation%3E%0A++++++++++++++++++++++++++++++++%3C%2FBankHolidayOperation%3E%0A++++++++++++++++++++++++%3C%2FOperatingProfile%3E'
   28     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   30     5        FETCH_OBJ_R                                      ~6      !1, 'BankHolidayOperation'
          6        FETCH_OBJ_R                                      ~7      ~6, 'DaysOfNonOperation'
          7        INIT_METHOD_CALL                                         ~7, 'xpath'
          8        SEND_VAL_EX                                              '%2F%2F%2A'
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !2, $8
   32    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.85 ms | 1396 KiB | 17 Q