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'; var_dump($xml->value);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OnUf8
function name:  (null)
number of ops:  12
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%5Cfoo_bar'
   12     7        INIT_FCALL                                               'var_dump'
          8        FETCH_OBJ_R                                      ~6      !1, 'value'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.36 ms | 1385 KiB | 17 Q