3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass; $a->a = new stdClass; $a->a->a = new stdClass; $a->a->a->a = 'a'; $a = [ 'a' => [ 'a' => [ 'a' => 'a' ] ] ]; $b = $a->a; var_dump($b); var_dump($b['a'] = 'c'); var_dump($a);
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/CZkRP
function name:  (null)
number of ops:  31
compiled vars:  !0 = $a, !1 = $b
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NEW                                              $2      :-5
         1        DO_FCALL                                      0          
         2        ASSIGN                                                   !0, $2
   5     3        NEW                                              $6      :-2
         4        DO_FCALL                                      0          
         5        ASSIGN_OBJ                                               !0, 'a'
         6        OP_DATA                                                  $6
   6     7        NEW                                              $10     :2
         8        DO_FCALL                                      0          
         9        FETCH_OBJ_W                                      $8      !0, 'a'
        10        ASSIGN_OBJ                                               $8, 'a'
        11        OP_DATA                                                  $10
   7    12        FETCH_OBJ_W                                      $12     !0, 'a'
        13        FETCH_OBJ_W                                      $13     $12, 'a'
        14        ASSIGN_OBJ                                               $13, 'a'
        15        OP_DATA                                                  'a'
  10    16        ASSIGN                                                   !0, <array>
  12    17        FETCH_OBJ_R                                      $16     !0, 'a'
        18        ASSIGN                                                   !1, $16
  14    19        INIT_FCALL                                               'var_dump'
        20        SEND_VAR                                                 !1
        21        DO_ICALL                                                 
  16    22        INIT_FCALL                                               'var_dump'
        23        ASSIGN_DIM                                       $19     !1, 'a'
        24        OP_DATA                                                  'c'
        25        SEND_VAR                                                 $19
        26        DO_ICALL                                                 
  18    27        INIT_FCALL                                               'var_dump'
        28        SEND_VAR                                                 !0
        29        DO_ICALL                                                 
        30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0