3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "7.0.1" or die(); $obj = new stdClass(); $obj->bar = "xyz"; echo $obj->{${'data'}[$key]},"\n"; echo "{$obj->{${'data'}[$key]}}\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8QcbM
function name:  (null)
number of ops:  21
compiled vars:  !0 = $obj, !1 = $data, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $3      
          2        IS_SMALLER_OR_EQUAL                              ~4      '7.0.1', $3
          3      > JMPNZ_EX                                         ~4      ~4, ->6
          4    > > EXIT                                                     
          5*       BOOL                                             ~4      <true>
    4     6    >   NEW                                              $5      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $5
    6     9        ASSIGN_OBJ                                               !0, 'bar'
         10        OP_DATA                                                  'xyz'
    8    11        FETCH_DIM_R                                      ~9      !1, !2
         12        FETCH_OBJ_R                                      ~10     !0, ~9
         13        ECHO                                                     ~10
         14        ECHO                                                     '%0A'
   10    15        FETCH_DIM_R                                      ~11     !1, !2
         16        FETCH_OBJ_R                                      ~12     !0, ~11
         17        NOP                                                      
         18        FAST_CONCAT                                      ~13     ~12, '%0A'
         19        ECHO                                                     ~13
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.86 ms | 1395 KiB | 15 Q