3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = [ "city" => "South Boston", "title" => "The good stuff", "price" => "$15" ]; $_SERVER["REQUEST_URI"] = "/I/dont/know?" . http_build_query($_GET); $dir_auth1 = "aidan"; $xml = simplexml_load_string('<root/>'); $entry = $xml->addChild('link'); $entry->addChild('title', chop($_GET['city'] .' - '. $_GET['title']) .' for '. $_GET['price'] .' from @'. $dir_auth1); $entry->addChild('url', 'http://boston.lit.life' . $_SERVER['REQUEST_URI']); echo $xml->asXML(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ihuPQ
function name:  (null)
number of ops:  49
compiled vars:  !0 = $dir_auth1, !1 = $xml, !2 = $entry
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $3      '_GET'
          1        ASSIGN                                                   $3, <array>
    8     2        INIT_FCALL                                               'http_build_query'
          3        FETCH_R                      global              ~7      '_GET'
          4        SEND_VAL                                                 ~7
          5        DO_ICALL                                         $8      
          6        CONCAT                                           ~9      '%2FI%2Fdont%2Fknow%3F', $8
          7        FETCH_W                      global              $5      '_SERVER'
          8        ASSIGN_DIM                                               $5, 'REQUEST_URI'
          9        OP_DATA                                                  ~9
    9    10        ASSIGN                                                   !0, 'aidan'
   11    11        INIT_FCALL                                               'simplexml_load_string'
         12        SEND_VAL                                                 '%3Croot%2F%3E'
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !1, $11
   13    15        INIT_METHOD_CALL                                         !1, 'addChild'
         16        SEND_VAL_EX                                              'link'
         17        DO_FCALL                                      0  $13     
         18        ASSIGN                                                   !2, $13
   14    19        INIT_METHOD_CALL                                         !2, 'addChild'
         20        SEND_VAL_EX                                              'title'
         21        INIT_FCALL                                               'chop'
         22        FETCH_R                      global              ~15     '_GET'
         23        FETCH_DIM_R                                      ~16     ~15, 'city'
         24        CONCAT                                           ~17     ~16, '+-+'
         25        FETCH_R                      global              ~18     '_GET'
         26        FETCH_DIM_R                                      ~19     ~18, 'title'
         27        CONCAT                                           ~20     ~17, ~19
         28        SEND_VAL                                                 ~20
         29        DO_ICALL                                         $21     
         30        CONCAT                                           ~22     $21, '+for+'
         31        FETCH_R                      global              ~23     '_GET'
         32        FETCH_DIM_R                                      ~24     ~23, 'price'
         33        CONCAT                                           ~25     ~22, ~24
         34        CONCAT                                           ~26     ~25, '+from+%40'
         35        CONCAT                                           ~27     ~26, !0
         36        SEND_VAL_EX                                              ~27
         37        DO_FCALL                                      0          
   15    38        INIT_METHOD_CALL                                         !2, 'addChild'
         39        SEND_VAL_EX                                              'url'
         40        FETCH_R                      global              ~29     '_SERVER'
         41        FETCH_DIM_R                                      ~30     ~29, 'REQUEST_URI'
         42        CONCAT                                           ~31     'http%3A%2F%2Fboston.lit.life', ~30
         43        SEND_VAL_EX                                              ~31
         44        DO_FCALL                                      0          
   17    45        INIT_METHOD_CALL                                         !1, 'asXML'
         46        DO_FCALL                                      0  $33     
         47        ECHO                                                     $33
   19    48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.04 ms | 1017 KiB | 16 Q