3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlString = '<article> <body> <title>I <underline><bold>LOVE</bold></underline> Coding</title> </body> </article>'; $xml = simplexml_load_string($xmlString); $title = strip_tags($xml->body->title->asXML()); echo $title;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SYgPm
function name:  (null)
number of ops:  15
compiled vars:  !0 = $xmlString, !1 = $xml, !2 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Carticle%3E%0A++%3Cbody%3E%0A++++%3Ctitle%3EI+%3Cunderline%3E%3Cbold%3ELOVE%3C%2Fbold%3E%3C%2Funderline%3E+Coding%3C%2Ftitle%3E%0A++%3C%2Fbody%3E%0A%3C%2Farticle%3E'
    9     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   11     5        INIT_FCALL                                               'strip_tags'
          6        FETCH_OBJ_R                                      ~6      !1, 'body'
          7        FETCH_OBJ_R                                      ~7      ~6, 'title'
          8        INIT_METHOD_CALL                                         ~7, 'asXML'
          9        DO_FCALL                                      0  $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !2, $9
   13    13        ECHO                                                     !2
   14    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.11 ms | 1010 KiB | 15 Q