3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmldata = <<< XML <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>XML Example</title> </head> <body> <p> <b>Hello, World!</b> </p> </body> </html> XML; $sxe = simplexml_load_string($xmldata); $p = $sxe->body->p; var_dump($p); $string = trim(strip_tags(($p->asXML()))); print $string; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aqNda
function name:  (null)
number of ops:  22
compiled vars:  !0 = $xmldata, !1 = $sxe, !2 = $p, !3 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22ISO-8859-1%22+%3F%3E%0A%3C%21DOCTYPE+html%0A+++++PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1.0+Transitional%2F%2FEN%22%0A+++++%22http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional.dtd%22%3E%0A%3Chtml+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22+xml%3Alang%3D%22en%22+lang%3D%22en%22%3E%0A++%3Chead%3E%0A++++%3Ctitle%3EXML+Example%3C%2Ftitle%3E%0A++%3C%2Fhead%3E%0A++%3Cbody%3E%0A++++%3Cp%3E%0A++++++%3Cb%3EHello%2C+World%21%3C%2Fb%3E%0A++++%3C%2Fp%3E%0A++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   20     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
   22     5        FETCH_OBJ_R                                      ~7      !1, 'body'
          6        FETCH_OBJ_R                                      ~8      ~7, 'p'
          7        ASSIGN                                                   !2, ~8
   23     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
   24    11        INIT_FCALL                                               'trim'
         12        INIT_FCALL                                               'strip_tags'
         13        INIT_METHOD_CALL                                         !2, 'asXML'
         14        DO_FCALL                                      0  $11     
         15        SEND_VAR                                                 $11
         16        DO_ICALL                                         $12     
         17        SEND_VAR                                                 $12
         18        DO_ICALL                                         $13     
         19        ASSIGN                                                   !3, $13
   26    20        ECHO                                                     !3
   27    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.87 ms | 1395 KiB | 21 Q