3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <html> <head><title></title></head> <body> <content type="text">the content</content> </body> </html> XML; $xe = new SimpleXMLElement($xml); echo $xe->content[0]; echo $xe->asXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jX9V6
function name:  (null)
number of ops:  12
compiled vars:  !0 = $xml, !1 = $xe
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Chtml%3E%0A%3Chead%3E%3Ctitle%3E%3C%2Ftitle%3E%3C%2Fhead%3E%0A%3Cbody%3E%0A%3Ccontent+type%3D%22text%22%3Ethe+content%3C%2Fcontent%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   10     1        NEW                                              $3      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   11     5        FETCH_OBJ_R                                      ~6      !1, 'content'
          6        FETCH_DIM_R                                      ~7      ~6, 0
          7        ECHO                                                     ~7
   12     8        INIT_METHOD_CALL                                         !1, 'asXML'
          9        DO_FCALL                                      0  $8      
         10        ECHO                                                     $8
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.67 ms | 1384 KiB | 13 Q