3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = '<?xml version="1.0" encoding="UTF-8"?> <root a="b"> <row b="y"> <item s="t" /> </row> <row p="c"> <item y="n" /> </row> </root>'; $b = str_replace( array("\n", "\r", "\t"), "", $a ); $simple_xml = simplexml_load_string($b); print_r($simple_xml->row[0]->item);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UcBUO
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $simple_xml
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Croot+a%3D%22b%22%3E%0A%09%3Crow+b%3D%22y%22%3E%0A%09%09%3Citem+s%3D%22t%22+%2F%3E%0A%09%3C%2Frow%3E%0A%09%3Crow+p%3D%22c%22%3E%0A%09%09%3Citem+y%3D%22n%22+%2F%3E%0A%09%3C%2Frow%3E%0A%3C%2Froot%3E'
   13     1        FRAMELESS_ICALL_3                str_replace         ~4      <array>, ''
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~4
   14     4        INIT_FCALL                                                   'simplexml_load_string'
          5        SEND_VAR                                                     !1
          6        DO_ICALL                                             $6      
          7        ASSIGN                                                       !2, $6
   15     8        INIT_FCALL                                                   'print_r'
          9        FETCH_OBJ_R                                          ~8      !2, 'row'
         10        FETCH_DIM_R                                          ~9      ~8, 0
         11        FETCH_OBJ_R                                          ~10     ~9, 'item'
         12        SEND_VAL                                                     ~10
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.14 ms | 3137 KiB | 15 Q