3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new stdClass(); $x->foo = new stdClass(); $x->foo->bar = 'baz'; var_dump("abc.{$x->foo->bar}.def");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kpEl5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        NEW                                              $5      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'foo'
          6        OP_DATA                                                  $5
    5     7        FETCH_OBJ_W                                      $7      !0, 'foo'
          8        ASSIGN_OBJ                                               $7, 'bar'
          9        OP_DATA                                                  'baz'
    6    10        INIT_FCALL                                               'var_dump'
         11        ROPE_INIT                                     3  ~12     'abc.'
         12        FETCH_OBJ_R                                      ~9      !0, 'foo'
         13        FETCH_OBJ_R                                      ~10     ~9, 'bar'
         14        ROPE_ADD                                      1  ~12     ~12, ~10
         15        ROPE_END                                      2  ~11     ~12, '.def'
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.39 ms | 1394 KiB | 15 Q