3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c { public $i; }; $a = aray(new c,new c, new c); $a[0]->i = 1; $a[0]->i = 2; $a[0]->i = 3; $b = $a; var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ND4Sl
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'aray'
          1        NEW                                              $2      'c'
          2        DO_FCALL                                      0          
          3        SEND_VAR_NO_REF_EX                                       $2
          4        NEW                                              $4      'c'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $4
          7        NEW                                              $6      'c'
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $6
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !0, $8
    5    12        FETCH_DIM_W                                      $10     !0, 0
         13        ASSIGN_OBJ                                               $10, 'i'
         14        OP_DATA                                                  1
    6    15        FETCH_DIM_W                                      $12     !0, 0
         16        ASSIGN_OBJ                                               $12, 'i'
         17        OP_DATA                                                  2
    7    18        FETCH_DIM_W                                      $14     !0, 0
         19        ASSIGN_OBJ                                               $14, 'i'
         20        OP_DATA                                                  3
    9    21        ASSIGN                                                   !1, !0
   11    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Class c: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.74 ms | 1395 KiB | 15 Q