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 = 13
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/MRdpY
function name:  (null)
number of ops:  15
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, ->13
          7    > > FE_FETCH_R                                               $8, !2, ->13
   14     8    >   FETCH_OBJ_R                                      ~9      !2, '%40attributes'
          9        FETCH_DIM_R                                      ~10     ~9, 'objectId'
         10        CONCAT                                           ~11     ~10, '%3Cbr%2F%3E'
         11        ECHO                                                     ~11
   13    12      > JMP                                                      ->7
         13    >   FE_FREE                                                  $8
   15    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.68 ms | 1385 KiB | 13 Q