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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.17 ms | 1394 KiB | 13 Q