3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr = <<<XML <?xml version='1.0' standalone='yes'?> <movies> <movie> <title>PHP: Behind the Parser</title> <characters> <character> <name>Ms. Coder</name> <actor>Onlivia Actora</actor> </character> <character> <name>Mr. Coder</name> <actor>El Act&#211;r</actor> </character> </characters> <plot> So, this language. It's like, a programming language. Or is it a scripting language? All is revealed in this thrilling horror spoof of a documentary. </plot> <great-lines> <line>PHP solves all my web problems</line> </great-lines> <rating type="thumbs">7</rating> <rating type="stars">5</rating> </movie> </movies> XML; $movies = new SimpleXMLElement($xmlstr); $arrs = json_decode(json_encode($movies), true); print_r($arrs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NeNjj
function name:  (null)
number of ops:  17
compiled vars:  !0 = $xmlstr, !1 = $movies, !2 = $arrs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%271.0%27+standalone%3D%27yes%27%3F%3E%0A%3Cmovies%3E%0A+%3Cmovie%3E%0A++%3Ctitle%3EPHP%3A+Behind+the+Parser%3C%2Ftitle%3E%0A++%3Ccharacters%3E%0A+++%3Ccharacter%3E%0A++++%3Cname%3EMs.+Coder%3C%2Fname%3E%0A++++%3Cactor%3EOnlivia+Actora%3C%2Factor%3E%0A+++%3C%2Fcharacter%3E%0A+++%3Ccharacter%3E%0A++++%3Cname%3EMr.+Coder%3C%2Fname%3E%0A++++%3Cactor%3EEl+Act%26%23211%3Br%3C%2Factor%3E%0A+++%3C%2Fcharacter%3E%0A++%3C%2Fcharacters%3E%0A++%3Cplot%3E%0A+++So%2C+this+language.+It%27s+like%2C+a+programming+language.+Or+is+it+a%0A+++scripting+language%3F+All+is+revealed+in+this+thrilling+horror+spoof%0A+++of+a+documentary.%0A++%3C%2Fplot%3E%0A++%3Cgreat-lines%3E%0A+++%3Cline%3EPHP+solves+all+my+web+problems%3C%2Fline%3E%0A++%3C%2Fgreat-lines%3E%0A++%3Crating+type%3D%22thumbs%22%3E7%3C%2Frating%3E%0A++%3Crating+type%3D%22stars%22%3E5%3C%2Frating%3E%0A+%3C%2Fmovie%3E%0A%3C%2Fmovies%3E'
   31     1        NEW                                              $4      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   33     5        INIT_FCALL                                               'json_decode'
          6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        SEND_VAR                                                 $7
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
   34    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.7 ms | 1395 KiB | 19 Q