3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <?xml version="1.0" encoding="utf-8"?> <posts> <post> <title>Hello World</title> <author>tacticalsk8er</author> <content>Hello world this is my blogging site</content> </post> <post> <title>Hello Again</title> <author>Nick Peterson</author> <content><![CDATA[Hello Again world this is another test for my <b>blogging site</b>]]></content> </post> </posts> XML; $xml = simplexml_load_string($x); echo $xml->posts(1)->title;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/coWM1
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%0A%3Cposts%3E%0A++++%3Cpost%3E%0A++++++++%3Ctitle%3EHello+World%3C%2Ftitle%3E%0A++++++++%3Cauthor%3Etacticalsk8er%3C%2Fauthor%3E%0A++++++++%3Ccontent%3EHello+world+this+is+my+blogging+site%3C%2Fcontent%3E%0A++++%3C%2Fpost%3E%0A++++%3Cpost%3E%0A++++++++%3Ctitle%3EHello+Again%3C%2Ftitle%3E%0A++++++++%3Cauthor%3ENick+Peterson%3C%2Fauthor%3E%0A++++++++%3Ccontent%3E%3C%21%5BCDATA%5BHello+Again+world+this+is+another+test+for+my+%3Cb%3Eblogging+site%3C%2Fb%3E%5D%5D%3E%3C%2Fcontent%3E%0A++++%3C%2Fpost%3E%0A%3C%2Fposts%3E'
   18     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   20     5        INIT_METHOD_CALL                                         !1, 'posts'
          6        SEND_VAL_EX                                              1
          7        DO_FCALL                                      0  $5      
          8        FETCH_OBJ_R                                      ~6      $5, 'title'
          9        ECHO                                                     ~6
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.68 ms | 1394 KiB | 15 Q