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( $xml, $xml->elements->el[2] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hi4nS
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      :19
         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        QM_ASSIGN                                                !0
   3     4        INIT_FCALL                                               'var_dump'
   4     5        SEND_VAR                                                 !0
   5     6        FETCH_OBJ_R                                      ~4      !0, 'elements'
         7        FETCH_OBJ_R                                      ~5      ~4, 'el'
         8        FETCH_DIM_R                                      ~6      ~5, 2
         9        SEND_VAL                                                 ~6
        10        DO_ICALL                                                 
   6    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
14.95 ms | 410 KiB | 7 Q