3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = <<<XML <?xml version="1.0"?> <root> <value></value> </root> XML; $xml = simplexml_load_string($s); $xml->value = "HOSTING\foo_bar"; echo $xml->asXml();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SUnXM
function name:  (null)
number of ops:  11
compiled vars:  !0 = $s, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3Croot%3E++%0A%3Cvalue%3E%3C%2Fvalue%3E%0A%3C%2Froot%3E%0A'
   10     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   11     5        ASSIGN_OBJ                                               !1, 'value'
          6        OP_DATA                                                  'HOSTING%0Coo_bar'
   12     7        INIT_METHOD_CALL                                         !1, 'asXml'
          8        DO_FCALL                                      0  $6      
          9        ECHO                                                     $6
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.46 ms | 1394 KiB | 15 Q