3v4l.org

run code in 300+ PHP versions simultaneously
<?php $export = array(); $view = new stdClass(); $view->name = 'first_view'; $view->value = 'first_view_value'; $export[$view->name] = clone $view; $view->value = 'messing around with the view after the fact'; $view = new stdClass(); $view->name = 'second_view'; $view->value = 'second_view_value'; $export[$view->name] = clone $view; $view->value = 'messing around with the view after the fact part 2'; var_dump($export);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I6gLo
function name:  (null)
number of ops:  31
compiled vars:  !0 = $export, !1 = $view
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        NEW                                              $3      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    6     4        ASSIGN_OBJ                                               !1, 'name'
          5        OP_DATA                                                  'first_view'
    7     6        ASSIGN_OBJ                                               !1, 'value'
          7        OP_DATA                                                  'first_view_value'
    9     8        FETCH_OBJ_R                                      ~8      !1, 'name'
          9        CLONE                                            ~10     !1
         10        ASSIGN_DIM                                               !0, ~8
         11        OP_DATA                                                  ~10
   11    12        ASSIGN_OBJ                                               !1, 'value'
         13        OP_DATA                                                  'messing+around+with+the+view+after+the+fact'
   13    14        NEW                                              $12     'stdClass'
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !1, $12
   14    17        ASSIGN_OBJ                                               !1, 'name'
         18        OP_DATA                                                  'second_view'
   15    19        ASSIGN_OBJ                                               !1, 'value'
         20        OP_DATA                                                  'second_view_value'
   17    21        FETCH_OBJ_R                                      ~17     !1, 'name'
         22        CLONE                                            ~19     !1
         23        ASSIGN_DIM                                               !0, ~17
         24        OP_DATA                                                  ~19
   19    25        ASSIGN_OBJ                                               !1, 'value'
         26        OP_DATA                                                  'messing+around+with+the+view+after+the+fact+part+2'
   21    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.2 ms | 1396 KiB | 15 Q