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] = $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] = $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/pKTdk
function name:  (null)
number of ops:  29
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        ASSIGN_DIM                                               !0, ~8
         10        OP_DATA                                                  !1
   11    11        ASSIGN_OBJ                                               !1, 'value'
         12        OP_DATA                                                  'messing+around+with+the+view+after+the+fact'
   13    13        NEW                                              $11     'stdClass'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !1, $11
   14    16        ASSIGN_OBJ                                               !1, 'name'
         17        OP_DATA                                                  'second_view'
   15    18        ASSIGN_OBJ                                               !1, 'value'
         19        OP_DATA                                                  'second_view_value'
   17    20        FETCH_OBJ_R                                      ~16     !1, 'name'
         21        ASSIGN_DIM                                               !0, ~16
         22        OP_DATA                                                  !1
   19    23        ASSIGN_OBJ                                               !1, 'value'
         24        OP_DATA                                                  'messing+around+with+the+view+after+the+fact+part+2'
   21    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.85 ms | 1395 KiB | 15 Q