3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlContent = <<<XML <ol> <li> <a href="Untitled-1-1.xhtml">1</a> </li> <li> <a href="Untitled-1-2.xhtml"/> </li> </ol> XML; $xml = new \SimpleXMLElement($xmlContent); echo $xml->li[0]->a['href'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BOVfB
function name:  (null)
number of ops:  11
compiled vars:  !0 = $xmlContent, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '++++%3Col%3E%0A++++++++%3Cli%3E%0A++++++++++++%3Ca+href%3D%22Untitled-1-1.xhtml%22%3E1%3C%2Fa%3E%0A++++++++%3C%2Fli%3E%0A++++++++%3Cli%3E%0A++++++++++++%3Ca+href%3D%22Untitled-1-2.xhtml%22%2F%3E%0A++++++++%3C%2Fli%3E%0A++++%3C%2Fol%3E'
   13     1        NEW                                              $3      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   15     5        FETCH_OBJ_R                                      ~6      !1, 'li'
          6        FETCH_DIM_R                                      ~7      ~6, 0
          7        FETCH_OBJ_R                                      ~8      ~7, 'a'
          8        FETCH_DIM_R                                      ~9      ~8, 'href'
          9        ECHO                                                     ~9
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.88 ms | 940 KiB | 13 Q