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); $id = 0; $post = $xml->post[$id]; echo $post->title;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l9mAl
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x, !1 = $xml, !2 = $id, !3 = $post
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                                         $5      
          4        ASSIGN                                                   !1, $5
   20     5        ASSIGN                                                   !2, 0
   21     6        FETCH_OBJ_R                                      ~8      !1, 'post'
          7        FETCH_DIM_R                                      ~9      ~8, !2
          8        ASSIGN                                                   !3, ~9
   23     9        FETCH_OBJ_R                                      ~11     !3, 'title'
         10        ECHO                                                     ~11
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.96 ms | 1394 KiB | 15 Q