3v4l.org

run code in 500+ PHP versions simultaneously
<?php $obj = new SimpleXMLElement('<foo rel="alternate" href="http://www.youtube.com/watch?v=blabla" />'); print_r($obj); echo $obj['rel'], ' | ', $obj['href'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fr96j
function name:  (null)
number of ops:  13
compiled vars:  !0 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   NEW                                                  $1      'SimpleXMLElement'
          1        SEND_VAL_EX                                                  '%3Cfoo+rel%3D%22alternate%22+href%3D%22http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dblabla%22+%2F%3E'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
    3     4        INIT_FCALL                                                   'print_r'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                                     
    5     7        FETCH_DIM_R                                          ~5      !0, 'rel'
          8        ECHO                                                         ~5
          9        ECHO                                                         '+%7C+'
         10        FETCH_DIM_R                                          ~6      !0, 'href'
         11        ECHO                                                         ~6
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.31 ms | 2341 KiB | 14 Q