3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <condition type="or"> <event objType="s" objectId="144" eventType="tr" event="triggered"/> <event objType="s" objectId="149" eventType="tr" event="triggered"/> <event objType="s" objectId="159" eventType="tr" event="triggered"/> <event objType="s" objectId="160" eventType="tr" event="triggered"/> <event objType="s" objectId="145" eventType="tr" event="triggered"/> </condition>'; $obj = new SimpleXMLIterator($xml); foreach ($obj->event as $event) { echo $event->{@attributes}['objectId'] . '<br/>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/KKJWM
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $obj, !2 = $event
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Ccondition+type%3D%22or%22%3E%0A++%3Cevent+objType%3D%22s%22+objectId%3D%22144%22+eventType%3D%22tr%22+event%3D%22triggered%22%2F%3E%0A++%3Cevent+objType%3D%22s%22+objectId%3D%22149%22+eventType%3D%22tr%22+event%3D%22triggered%22%2F%3E%0A++%3Cevent+objType%3D%22s%22+objectId%3D%22159%22+eventType%3D%22tr%22+event%3D%22triggered%22%2F%3E%0A++%3Cevent+objType%3D%22s%22+objectId%3D%22160%22+eventType%3D%22tr%22+event%3D%22triggered%22%2F%3E%0A++%3Cevent+objType%3D%22s%22+objectId%3D%22145%22+eventType%3D%22tr%22+event%3D%22triggered%22%2F%3E%0A%3C%2Fcondition%3E'
   11     1        NEW                                              $4      'SimpleXMLIterator'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   13     5        FETCH_OBJ_R                                      ~7      !1, 'event'
          6      > FE_RESET_R                                       $8      ~7, ->16
          7    > > FE_FETCH_R                                               $8, !2, ->16
   14     8    >   BEGIN_SILENCE                                    ~9      
          9        FETCH_CONSTANT                                   ~10     'attributes'
         10        END_SILENCE                                              ~9
         11        FETCH_OBJ_R                                      ~11     !2, ~10
         12        FETCH_DIM_R                                      ~12     ~11, 'objectId'
         13        CONCAT                                           ~13     ~12, '%3Cbr%2F%3E'
         14        ECHO                                                     ~13
   13    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $8
   15    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.95 ms | 1394 KiB | 13 Q