3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ats = new stdObject(); $ats->attr = new stdObject(); $ats->attr->token = '123'; echo $ats->attr->{'token'};
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pqb4p
function name:  (null)
number of ops:  14
compiled vars:  !0 = $ats
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'stdObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        NEW                                              $5      'stdObject'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'attr'
          6        OP_DATA                                                  $5
    5     7        FETCH_OBJ_W                                      $7      !0, 'attr'
          8        ASSIGN_OBJ                                               $7, 'token'
          9        OP_DATA                                                  '123'
    7    10        FETCH_OBJ_R                                      ~9      !0, 'attr'
         11        FETCH_OBJ_R                                      ~10     ~9, 'token'
         12        ECHO                                                     ~10
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.81 ms | 1393 KiB | 13 Q