3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array( 'class' => new stdClass(), 'number' => 333 ); $x['class']->evilive = 123; $y = $x; $y['class']->evilive = 444; $y['number'] = 555; var_dump($x, $y);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9WZqA
function name:  (null)
number of ops:  19
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~4      $2, 'class'
    4     3        ADD_ARRAY_ELEMENT                                ~4      333, 'number'
    2     4        ASSIGN                                                   !0, ~4
    6     5        FETCH_DIM_W                                      $6      !0, 'class'
          6        ASSIGN_OBJ                                               $6, 'evilive'
          7        OP_DATA                                                  123
    7     8        ASSIGN                                                   !1, !0
    8     9        FETCH_DIM_W                                      $9      !1, 'class'
         10        ASSIGN_OBJ                                               $9, 'evilive'
         11        OP_DATA                                                  444
    9    12        ASSIGN_DIM                                               !1, 'number'
         13        OP_DATA                                                  555
   10    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.33 ms | 1394 KiB | 15 Q