3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0"?><outer><inner id="1">text1</inner><inner id="2">text2 </inner></outer>'; $sxe = simplexml_load_string($xml); var_dump((array) $sxe->inner);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SPp3f
function name:  (null)
number of ops:  11
compiled vars:  !0 = $xml, !1 = $sxe
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3C%3Fxml+version%3D%221.0%22%3F%3E%3Couter%3E%3Cinner+id%3D%221%22%3Etext1%3C%2Finner%3E%3Cinner+id%3D%222%22%3Etext2%0A%3C%2Finner%3E%3C%2Fouter%3E'
    5     1        INIT_FCALL                                                   'simplexml_load_string'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $3      
          4        ASSIGN                                                       !1, $3
    6     5        INIT_FCALL                                                   'var_dump'
          6        FETCH_OBJ_R                                          ~5      !1, 'inner'
          7        CAST                                              7  ~6      ~5
          8        SEND_VAL                                                     ~6
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.25 ms | 3337 KiB | 15 Q