3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = simplexml_load_string( '<root><Result RC="0" /><Login SID="9982A014EC8644D0A4A760AE9026E154" IsAdmin="1"/></root>' ); $sid = $res->Login['SID']; print_r( (string)$sid );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6cXci
function name:  (null)
number of ops:  12
compiled vars:  !0 = $res, !1 = $sid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'simplexml_load_string'
          1        SEND_VAL                                                 '%3Croot%3E%3CResult+RC%3D%220%22+%2F%3E%3CLogin+SID%3D%229982A014EC8644D0A4A760AE9026E154%22+IsAdmin%3D%221%22%2F%3E%3C%2Froot%3E'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        FETCH_OBJ_R                                      ~4      !0, 'Login'
          5        FETCH_DIM_R                                      ~5      ~4, 'SID'
          6        ASSIGN                                                   !1, ~5
    4     7        INIT_FCALL                                               'print_r'
          8        CAST                                          6  ~7      !1
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.01 ms | 1394 KiB | 17 Q