3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <quizzes> <quiz> <title> </title> <description> <text> </text> </description> </quiz> </quizzes>'; $quizzes = new SimpleXMLElement($xml); $quizzes->quiz[0]->title = "TITLE"; $quizzes->quiz[0]->description->text = "DESCRIPTION"; echo $quizzes->asXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8F5eQ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $quizzes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Cquizzes%3E%0A++++%3Cquiz%3E%0A++++++++%3Ctitle%3E%0A++++++++%3C%2Ftitle%3E%0A++++++++%3Cdescription%3E%0A++++++++++++%3Ctext%3E%0A++++++++++++%3C%2Ftext%3E%0A++++++++%3C%2Fdescription%3E%0A++++%3C%2Fquiz%3E%0A%3C%2Fquizzes%3E'
   16     1        NEW                                              $3      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   18     5        FETCH_OBJ_W                                      $6      !1, 'quiz'
          6        FETCH_DIM_W                                      $7      $6, 0
          7        ASSIGN_OBJ                                               $7, 'title'
          8        OP_DATA                                                  'TITLE'
   19     9        FETCH_OBJ_W                                      $9      !1, 'quiz'
         10        FETCH_DIM_W                                      $10     $9, 0
         11        FETCH_OBJ_W                                      $11     $10, 'description'
         12        ASSIGN_OBJ                                               $11, 'text'
         13        OP_DATA                                                  'DESCRIPTION'
   21    14        INIT_METHOD_CALL                                         !1, 'asXML'
         15        DO_FCALL                                      0  $13     
         16        ECHO                                                     $13
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.83 ms | 1398 KiB | 13 Q