3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * SimpleXMLElement Introspection */ error_reporting(~0); $xml = '<document> <child> give <grandchild a1="v1" a2="v2"> me </grandchild> <grandchild> more </grandchild> sugar. </child> <child> </child> <single/> </document> '; $simple = new SimpleXMLElement($xml);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8e0Df
function name:  (null)
number of ops:  9
compiled vars:  !0 = $xml, !1 = $simple
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    8     3        ASSIGN                                                   !0, '%3Cdocument%3E%0A++++%3Cchild%3E%0A++++++++give%0A++++++++%3Cgrandchild+a1%3D%22v1%22+a2%3D%22v2%22%3E%0A++++++++++++me%0A++++++++%3C%2Fgrandchild%3E%0A++++++++%3Cgrandchild%3E%0A++++++++++++more%0A++++++++%3C%2Fgrandchild%3E%0A++++++++sugar.%0A++++%3C%2Fchild%3E%0A++++%3Cchild%3E%0A++++%3C%2Fchild%3E%0A++++%3Csingle%2F%3E%0A%3C%2Fdocument%3E%0A'
   25     4        NEW                                              $4      'SimpleXMLElement'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.79 ms | 1398 KiB | 15 Q