3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<root><elements attr="test"><el>test1</el><el>test2</el><el test_attr="123">test3</el></elements></root>'); var_dump((string)$xml->elements->el[2]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XMOA1
function name:  (null)
number of ops:  12
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Croot%3E%3Celements+attr%3D%22test%22%3E%3Cel%3Etest1%3C%2Fel%3E%3Cel%3Etest2%3C%2Fel%3E%3Cel+test_attr%3D%22123%22%3Etest3%3C%2Fel%3E%3C%2Felements%3E%3C%2Froot%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'var_dump'
          5        FETCH_OBJ_R                                      ~4      !0, 'elements'
          6        FETCH_OBJ_R                                      ~5      ~4, 'el'
          7        FETCH_DIM_R                                      ~6      ~5, 2
          8        CAST                                          6  ~7      ~6
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.03 ms | 1385 KiB | 15 Q