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->condition as $event) { echo $event->objectId . '<br/>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/D38ML
function name:  (null)
number of ops:  14
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
   12     5        FETCH_OBJ_R                                      ~7      !1, 'condition'
          6      > FE_RESET_R                                       $8      ~7, ->12
          7    > > FE_FETCH_R                                               $8, !2, ->12
   13     8    >   FETCH_OBJ_R                                      ~9      !2, 'objectId'
          9        CONCAT                                           ~10     ~9, '%3Cbr%2F%3E'
         10        ECHO                                                     ~10
   12    11      > JMP                                                      ->7
         12    >   FE_FREE                                                  $8
   14    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.15 ms | 1385 KiB | 13 Q