3v4l.org

run code in 300+ PHP versions simultaneously
<?php $topcont = new DOMDocument(); $topcont->load("<?xml version='1.0' encoding='utf-8'?> <topcont><sitenondualtraining><title>The Heart of Awakening</title> <descripition>nondual</descripition><link>www.test.com/post/latestpost</link> </sitenondualtraining></topcont>"); $topcont->topcont->sitenondualtraining->title = 'test'; $topcont->sitenondualtraining->descripition = $_POST['nd2']; $topcont->sitenondualtraining->link = $_POST['nd3']; $topcont->Save("topcont.xml");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3PqOR
function name:  (null)
number of ops:  24
compiled vars:  !0 = $topcont
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_METHOD_CALL                                         !0, 'load'
          4        SEND_VAL_EX                                              '%3C%3Fxml+version%3D%271.0%27+encoding%3D%27utf-8%27%3F%3E%0A%3Ctopcont%3E%3Csitenondualtraining%3E%3Ctitle%3EThe+Heart+of+Awakening%3C%2Ftitle%3E%0A%3Cdescripition%3Enondual%3C%2Fdescripition%3E%3Clink%3Ewww.test.com%2Fpost%2Flatestpost%3C%2Flink%3E%0A%3C%2Fsitenondualtraining%3E%3C%2Ftopcont%3E'
          5        DO_FCALL                                      0          
    8     6        FETCH_OBJ_W                                      $5      !0, 'topcont'
          7        FETCH_OBJ_W                                      $6      $5, 'sitenondualtraining'
          8        ASSIGN_OBJ                                               $6, 'title'
          9        OP_DATA                                                  'test'
    9    10        FETCH_R                      global              ~10     '_POST'
         11        FETCH_DIM_R                                      ~11     ~10, 'nd2'
         12        FETCH_OBJ_W                                      $8      !0, 'sitenondualtraining'
         13        ASSIGN_OBJ                                               $8, 'descripition'
         14        OP_DATA                                                  ~11
   10    15        FETCH_R                      global              ~14     '_POST'
         16        FETCH_DIM_R                                      ~15     ~14, 'nd3'
         17        FETCH_OBJ_W                                      $12     !0, 'sitenondualtraining'
         18        ASSIGN_OBJ                                               $12, 'link'
         19        OP_DATA                                                  ~15
   11    20        INIT_METHOD_CALL                                         !0, 'Save'
         21        SEND_VAL_EX                                              'topcont.xml'
         22        DO_FCALL                                      0          
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.13 ms | 1394 KiB | 13 Q